summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/utils
diff options
context:
space:
mode:
authorIdan Amit <ia096e@intl.att.com>2018-04-30 11:46:34 +0300
committerTal Gitelman <tg851x@intl.att.com>2018-04-30 12:00:46 +0000
commit743f4f1efb45124548ed3663ab6bbaa88d029dd2 (patch)
tree10420c11a56c5f2212d62047c065099ea9a0cc13 /catalog-ui/src/app/utils
parentecfee53a6e65fea79b64dbdace6517127c9b1e81 (diff)
Promise logic to pub-sub
Added a fix where the loader was displayed before waiting for the plugin to finish is work Change-Id: Ie8cb309f6bc65a2dd2d1fef1f33e36030930f45f Issue-ID: SDC-1164 Signed-off-by: Idan Amit <ia096e@intl.att.com>
Diffstat (limited to 'catalog-ui/src/app/utils')
-rw-r--r--catalog-ui/src/app/utils/change-lifecycle-state-handler.ts3
1 files changed, 2 insertions, 1 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 143c3c5360..54497ba187 100644
--- a/catalog-ui/src/app/utils/change-lifecycle-state-handler.ts
+++ b/catalog-ui/src/app/utils/change-lifecycle-state-handler.ts
@@ -103,14 +103,15 @@ export class ChangeLifecycleStateHandler {
//-------------------------------------------------
let onOk = (confirmationText):void => {
comment.userRemarks = confirmationText;
- scope.isLoading = true;
if (data.url === "lifecycleState/CHECKIN") {
this.eventBusService.notify("CHECK_IN").subscribe(() => {
+ scope.isLoading = true;
component.changeLifecycleState(data.url, comment).then(onSuccess, onError);
});
}
else {
+ scope.isLoading = true;
component.changeLifecycleState(data.url, comment).then(onSuccess, onError);
}
};