summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.service.ts
diff options
context:
space:
mode:
authorEylon Malin <eylon.malin@intl.att.com>2019-12-05 08:44:29 +0200
committerEylon Malin <eylon.malin@intl.att.com>2019-12-05 08:44:29 +0200
commitbfc61c4bb476d05ed0e06ecc9e68121e364cfceb (patch)
treee26869bee96c431158082953c2314b39ce95a70c /vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.service.ts
parent7cdf685b0b8726e9ee2233d189692dbeb7e434f5 (diff)
support recreate and isRecreateEnabled in instantiationStatus service
Issue-ID: VID-724 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Iae797bfa49d73059d67e66b5a6dc0ea62de1195c
Diffstat (limited to 'vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.service.ts')
-rw-r--r--vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.service.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.service.ts b/vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.service.ts
index 6848a9948..227fff10d 100644
--- a/vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.service.ts
+++ b/vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.service.ts
@@ -12,6 +12,7 @@ import {updateDrawingBoardStatus} from "../shared/storeUtil/utils/global/global.
import {Router, UrlTree} from "@angular/router";
import {of} from "rxjs";
import {MsoService} from "../shared/services/msoService/mso.service";
+import {ServiceAction} from "../shared/models/serviceInstanceActions";
export let PENDING : string = "pending";
export let INPROGRESS : string = "in_progress";
@@ -175,6 +176,14 @@ export class InstantiationStatusComponentService {
this.navigateToNewViewEdit(item, DrawingBoardModes.RETRY_EDIT);
}
+ recreate(item: ServiceInfoModel): void {
+ this.navigateToNewViewEdit(item, DrawingBoardModes.RECREATE);
+ }
+
+ isRecreateEnabled(item: ServiceInfoModel): boolean {
+ return item.action === ServiceAction.INSTANTIATE;
+ }
+
}