diff options
author | Idan Amit <ia096e@intl.att.com> | 2018-04-23 18:43:58 +0300 |
---|---|---|
committer | Idan Amit <ia096e@intl.att.com> | 2018-04-23 18:44:50 +0300 |
commit | 5668d53e5261594b53f50dc750a7e9841cb27bf1 (patch) | |
tree | c94c26c895f347f3b548f7574e55ae2e1dec644c /catalog-ui/src/app/utils/change-lifecycle-state-handler.ts | |
parent | 2a2e318e6fbb019845a608e8bf2be083d70b2ee3 (diff) |
Fixed tester pages hangs on accept click
Fixed an issue regarding the pubsub mechanism
Change-Id: I12a90e5a9d0e046f23ea57c457618b646b72b2e4
Issue-ID: SDC-1247
Signed-off-by: Idan Amit <ia096e@intl.att.com>
Diffstat (limited to 'catalog-ui/src/app/utils/change-lifecycle-state-handler.ts')
-rw-r--r-- | catalog-ui/src/app/utils/change-lifecycle-state-handler.ts | 10 |
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 => { |