aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui')
-rw-r--r--catalog-ui/src/app/utils/change-lifecycle-state-handler.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/catalog-ui/src/app/utils/change-lifecycle-state-handler.ts b/catalog-ui/src/app/utils/change-lifecycle-state-handler.ts
index f1c6544351..143c3c5360 100644
--- a/catalog-ui/src/app/utils/change-lifecycle-state-handler.ts
+++ b/catalog-ui/src/app/utils/change-lifecycle-state-handler.ts
@@ -110,6 +110,9 @@ export class ChangeLifecycleStateHandler {
component.changeLifecycleState(data.url, comment).then(onSuccess, onError);
});
}
+ else {
+ component.changeLifecycleState(data.url, comment).then(onSuccess, onError);
+ }
};
let onCancel = ():void => {
@@ -135,6 +138,13 @@ export class ChangeLifecycleStateHandler {
}
});
}
+ else {
+ if (resource) {
+ onSuccess(resource);
+ } else {
+ onError("Error changing life cycle state");
+ }
+ }
};
let onCancel = ():void => {