From ec5c8fddfb0ba0e40b19cd438533114652448d0f Mon Sep 17 00:00:00 2001 From: imamSidero Date: Tue, 29 Aug 2023 11:39:37 +0100 Subject: Provide UI support to upload csar to update service Upload capability is porvided in tosca artifact to update the service Issue-ID: SDC-4605 Signed-off-by: Imam hussain Change-Id: I075250f91e6e68f007298d1b982db86244a696db --- .../tosca-artifacts/tosca-artifact-page.component.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'catalog-ui/src/app/ng2/pages') diff --git a/catalog-ui/src/app/ng2/pages/workspace/tosca-artifacts/tosca-artifact-page.component.ts b/catalog-ui/src/app/ng2/pages/workspace/tosca-artifacts/tosca-artifact-page.component.ts index e6d820ecd5..c18d22ba07 100644 --- a/catalog-ui/src/app/ng2/pages/workspace/tosca-artifacts/tosca-artifact-page.component.ts +++ b/catalog-ui/src/app/ng2/pages/workspace/tosca-artifacts/tosca-artifact-page.component.ts @@ -70,11 +70,15 @@ export class ToscaArtifactPageComponent implements OnInit { this.isLoading = true; switch (artifactType) { case (ArtifactType.TOSCA.TOSCA_CSAR): - this.Notification.error({ - message: "Feature not implemented yet", - title: "Error" + this.componentService.putServiceToscaModel(this.componentId, this.componentType, file).subscribe((response)=> { + this.Notification.success({ + message: "Service " + response.name + " has been updated", + title: "Success" + }); + this.isLoading = false; + }, () => { + this.isLoading = false; }); - this.isLoading = false; break; case (ArtifactType.TOSCA.TOSCA_TEMPLATE): this.componentService.putServiceToscaTemplate(this.componentId, this.componentType, file).subscribe((response)=> { -- cgit 1.2.3-korg