summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/instantiationStatus
diff options
context:
space:
mode:
Diffstat (limited to 'vid-webpack-master/src/app/instantiationStatus')
-rw-r--r--vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.service.ts5
-rw-r--r--vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.ts16
2 files changed, 20 insertions, 1 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 e59c16a3a..cdbe890a5 100644
--- a/vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.service.ts
+++ b/vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.service.ts
@@ -115,6 +115,7 @@ export class InstantiationStatusComponentService {
}
navigateToNewViewEdit(item: InstantiationBase, mode: DrawingBoardModes): void {
+ console.log("Mode : ", mode);
this._store.dispatch(updateDrawingBoardStatus(mode));
const viewEditUrlTree:UrlTree = this.getNewViewEditUrlTree(item, mode);
this._router.navigateByUrl(viewEditUrlTree);
@@ -180,6 +181,10 @@ export class InstantiationStatusComponentService {
this.navigateToNewViewEdit(item, DrawingBoardModes.RETRY_EDIT);
}
+ resume(item: ServiceInfoModel): void {
+ this.navigateToNewViewEdit(item, DrawingBoardModes.RESUME);
+ }
+
recreate(item: ServiceInfoModel): void {
this.navigateToNewViewEdit(item, DrawingBoardModes.RECREATE);
}
diff --git a/vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.ts b/vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.ts
index 4dccb9e32..b5f54bcca 100644
--- a/vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.ts
+++ b/vid-webpack-master/src/app/instantiationStatus/instantiationStatus.component.ts
@@ -48,7 +48,15 @@ export class InstantiationStatusComponent implements OnInit {
className: "fa-repeat",
click: (item: ServiceInfoModel) => this.retryItem(item),
enabled: () => true,
- visible: (item: ServiceInfoModel) => item.isRetryEnabled,
+ visible: (item: ServiceInfoModel) => (item.isRetryEnabled && (item.jobStatus !== JobStatus.COMPLETED_AND_PAUSED)),
+ },
+ {
+ name: "Resume",
+ dataTestId: "context-menu-retry",
+ className: "fa-repeat",
+ click: (item: ServiceInfoModel) => this.resumeItem(item),
+ enabled: () => true,
+ visible: (item: ServiceInfoModel) => item.jobStatus === JobStatus.COMPLETED_AND_PAUSED,
},
{
name: "Open",
@@ -175,6 +183,12 @@ export class InstantiationStatusComponent implements OnInit {
}
}
+ resumeItem(item: ServiceInfoModel) : void {
+ if(item.isRetryEnabled && item.jobStatus === JobStatus.COMPLETED_AND_PAUSED){
+ this._instantiationStatusComponentService.resume(item);
+ }
+ }
+
auditInfo(jobData : ServiceInfoModel): void {
AuditInfoModalComponent.openModal.next(jobData);
}