Fix Bug 2336: Manual Healing option in Ui
*In NS Instances page. Click "Manual Healing" in the actions menu.
*Then a new pop-up page will opened.
*In the popup there will be drop-down containing membervnfIndex and Day1 operation.
*When the membervnfIndex and Day1 operation are selected including muti VDU optional can be selected then Click Apply button.
*The pop-up window is closed and the page is directed to "History of operations" page for this NS.
Change-Id: I3041bcfb56232c6f4b0f56441d89295cc04cfa02
Signed-off-by: SANDHYA.JS <sandhya.j@tataelxsi.co.in>
diff --git a/src/app/utilities/ns-instances-action/NSInstancesActionComponent.html b/src/app/utilities/ns-instances-action/NSInstancesActionComponent.html
index 517dbde..6a32735 100644
--- a/src/app/utilities/ns-instances-action/NSInstancesActionComponent.html
+++ b/src/app/utilities/ns-instances-action/NSInstancesActionComponent.html
@@ -70,6 +70,10 @@
placement="left" data-container="body" ngbTooltip="{{'SCALING' | translate}}">
<i class="fas fa-cubes"></i> {{'SCALING' | translate}}
</button>
+ <button type="button" class="btn btn-primary dropdown-item" [disabled]="operationalStatus === 'healing' || operationalStatus === 'failed' || configStatus === 'failed'" (click)="openHealing()"
+ placement="left" data-container="body" ngbTooltip="{{'HEALING' | translate}}">
+ <i class="fas fa-user-md"></i> {{'HEALING' | translate}}
+ </button>
<button type="button" class="btn btn-primary dropdown-item" (click)="openNsUpdate()" placement="left" data-container="body"
[disabled]="operationalStatus === 'failed' || configStatus === 'failed'" ngbTooltip="{{'NSUPDATE' | translate}}">
<i class="fas fa-arrow-alt-circle-up"></i> {{'NSUPDATE' | translate}}
diff --git a/src/app/utilities/ns-instances-action/NSInstancesActionComponent.ts b/src/app/utilities/ns-instances-action/NSInstancesActionComponent.ts
index ea7fa61..08e5e97 100644
--- a/src/app/utilities/ns-instances-action/NSInstancesActionComponent.ts
+++ b/src/app/utilities/ns-instances-action/NSInstancesActionComponent.ts
@@ -27,6 +27,7 @@
import { ERRORDATA, MODALCLOSERESPONSEDATA } from 'CommonModel';
import { DeleteComponent } from 'DeleteComponent';
import { environment } from 'environment';
+import { HealingComponent } from 'HealingComponent';
import { NSDDetails } from 'NSDModel';
import { NSDInstanceData } from 'NSInstanceModel';
import { NSPrimitiveComponent } from 'NSPrimitiveComponent';
@@ -170,7 +171,7 @@
}
}).catch((): void => {
// Catch Navigation Error
- });
+ });
}
/** History of operations for an Instanace @public */
@@ -285,7 +286,7 @@
}
}).catch((): void => {
// Catch Navigation Error
- });
+ });
}
/** To open VM Migration in NS Instances */
@@ -301,7 +302,7 @@
}
}).catch((): void => {
// Catch Navigation Error
- });
+ });
}
/** To open the Ns Update pop-up */
@@ -317,7 +318,7 @@
}
}).catch((): void => {
// Catch Navigation Error
- });
+ });
}
/** To open the Start, Stop & Rebuild pop-up */
@@ -341,7 +342,7 @@
}
}).catch((): void => {
// Catch Navigation Error
- });
+ });
}
/** To open the vertical Scaling pop-up */
@@ -357,7 +358,23 @@
}
}).catch((): void => {
// Catch Navigation Error
- });
+ });
+ }
+
+ /** Open the Healing pop-up @public */
+ public openHealing(): void {
+ // eslint-disable-next-line security/detect-non-literal-fs-filename
+ const modalRef: NgbModalRef = this.modalService.open(HealingComponent, { backdrop: 'static' });
+ modalRef.componentInstance.params = {
+ id: this.instanceID
+ };
+ modalRef.result.then((result: MODALCLOSERESPONSEDATA): void => {
+ if (result) {
+ this.sharedService.callData();
+ }
+ }).catch((): void => {
+ // Catch Navigation Error
+ });
}
/**