Fixed an issue regarding the pubsub mechanism
Change-Id: I12a90e5a9d0e046f23ea57c457618b646b72b2e4
Issue-ID: SDC-1247
Signed-off-by: Idan Amit <ia096e@intl.att.com>
component.changeLifecycleState(data.url, comment).then(onSuccess, onError);
});
}
+ else {
+ component.changeLifecycleState(data.url, comment).then(onSuccess, onError);
+ }
};
let onCancel = ():void => {
}
});
}
+ else {
+ if (resource) {
+ onSuccess(resource);
+ } else {
+ onError("Error changing life cycle state");
+ }
+ }
};
let onCancel = ():void => {