/**
* @file NS InstancesAction Component
*/
-import { isNullOrUndefined } from 'util';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Injector } from '@angular/core';
import { Router } from '@angular/router';
import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
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';
import { RestService } from 'RestService';
import { forkJoin, Observable } from 'rxjs';
import { ScalingComponent } from 'ScalingComponent';
-import { SharedService } from 'SharedService';
+import { SharedService, isNullOrUndefined } from 'SharedService';
import { ShowInfoComponent } from 'ShowInfoComponent';
import { StartStopRebuildComponent } from 'StartStopRebuildComponent';
import { VerticalScalingComponent } from 'VerticalScalingComponent';
}
}).catch((): void => {
// Catch Navigation Error
- });
+ });
}
/** History of operations for an Instanace @public */
}
}).catch((): void => {
// Catch Navigation Error
- });
+ });
}
/** To open VM Migration in NS Instances */
}
}).catch((): void => {
// Catch Navigation Error
- });
+ });
}
/** To open the Ns Update pop-up */
}
}).catch((): void => {
// Catch Navigation Error
- });
+ });
}
/** To open the Start, Stop & Rebuild pop-up */
}
}).catch((): void => {
// Catch Navigation Error
- });
+ });
}
/** To open the vertical Scaling pop-up */
}
}).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
+ });
}
/**