From 1fdab5a0f3c89c6e011ee45c787a14a6f785fa88 Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Tue, 12 Apr 2022 10:01:03 +0100 Subject: Add UI feedback when saving a interface operation Issue-ID: SDC-3969 Signed-off-by: JvD_Ericsson Change-Id: Ic75765473ddca16e351f9cde27a5e8d336413325 --- .../interface-operatons/interface-operations.component.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'catalog-ui/src/app') diff --git a/catalog-ui/src/app/ng2/pages/composition/interface-operatons/interface-operations.component.ts b/catalog-ui/src/app/ng2/pages/composition/interface-operatons/interface-operations.component.ts index c17c130d92..b8de7b8559 100644 --- a/catalog-ui/src/app/ng2/pages/composition/interface-operatons/interface-operations.component.ts +++ b/catalog-ui/src/app/ng2/pages/composition/interface-operatons/interface-operations.component.ts @@ -255,7 +255,7 @@ export class InterfaceOperationsComponent { } private updateInterfaceOperation() { - this.isLoading = true; + this.modalServiceNg2.currentModal.instance.dynamicContent.instance.isLoading = true; const interfaceOperationHandlerComponentInstance: InterfaceOperationHandlerComponent = this.modalInstance.instance.dynamicContent.instance; const operationUpdated: InterfaceOperationModel = interfaceOperationHandlerComponentInstance.operationToUpdate; const isArtifactChecked = interfaceOperationHandlerComponentInstance.enableAddArtifactImplementation; @@ -272,9 +272,12 @@ export class InterfaceOperationsComponent { .subscribe((updatedComponentInstance: ComponentInstance) => { this.componentInstanceSelected = new ComponentInstance(updatedComponentInstance); this.initComponentInstanceInterfaceOperations(); + this.modalServiceNg2.currentModal.instance.dynamicContent.instance.isLoading = false; + this.modalServiceNg2.closeCurrentModal(); + }, () => { + this.modalServiceNg2.currentModal.instance.dynamicContent.instance.isLoading = false; + this.modalServiceNg2.closeCurrentModal(); }); - this.modalServiceNg2.closeCurrentModal(); - this.isLoading = false; } loadDeployedArtifacts() { -- cgit 1.2.3-korg