summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/pages/workspace/tosca-artifacts/tosca-artifact-page.component.html
diff options
context:
space:
mode:
authorJvD_Ericsson <jeff.van.dam@est.tech>2023-08-25 13:46:04 +0100
committerVasyl Razinkov <vasyl.razinkov@est.tech>2023-08-30 10:37:05 +0000
commit243e567a44b042d9792f3436dedff9eeda8f720f (patch)
tree878d528d18b19613c5b2f97bbe7b081e9dfe8285 /catalog-ui/src/app/ng2/pages/workspace/tosca-artifacts/tosca-artifact-page.component.html
parent2ceeaf89e5ec648de8e1496bdf67352c3edbf41a (diff)
UI support for service update via tosca template import
Issue-ID: SDC-4604 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I68f7640a254d0636cb967c15d51522b8c8a7abfc
Diffstat (limited to 'catalog-ui/src/app/ng2/pages/workspace/tosca-artifacts/tosca-artifact-page.component.html')
-rw-r--r--catalog-ui/src/app/ng2/pages/workspace/tosca-artifacts/tosca-artifact-page.component.html20
1 files changed, 18 insertions, 2 deletions
diff --git a/catalog-ui/src/app/ng2/pages/workspace/tosca-artifacts/tosca-artifact-page.component.html b/catalog-ui/src/app/ng2/pages/workspace/tosca-artifacts/tosca-artifact-page.component.html
index fece92ee37..fe550642b1 100644
--- a/catalog-ui/src/app/ng2/pages/workspace/tosca-artifacts/tosca-artifact-page.component.html
+++ b/catalog-ui/src/app/ng2/pages/workspace/tosca-artifacts/tosca-artifact-page.component.html
@@ -1,4 +1,5 @@
<div class="tosca-artifact-page">
+ <loader [display]="isLoading" [relative]="true"></loader>
<ngx-datatable
columnMode="flex"
[headerHeight]="40"
@@ -27,7 +28,7 @@
</div>
</ng-template>
</ngx-datatable-column>
- <ngx-datatable-column [resizeable]="false"name="Type" [flexGrow]="3">
+ <ngx-datatable-column [resizeable]="false" name="Type" [flexGrow]="3">
<ng-template ngx-datatable-cell-template let-row="row">
{{row.artifactType}}
</ng-template>
@@ -37,7 +38,22 @@
{{ row.artifactVersion }}
</ng-template>
</ngx-datatable-column>
- <ngx-datatable-column [resizeable]="false"[flexGrow]="1">
+ <ngx-datatable-column *ngIf="isService() && isCheckedOut()" [resizeable]="false" name="Upload" [flexGrow]="1">
+ <ng-template ngx-datatable-cell-template let-row="row">
+ <div class="download-artifact-button">
+ <upload-artifact
+ [artifact]="row"
+ [componentId]="componentId"
+ [componentType]="componentType"
+ [disabled]="!isCheckedOut()"
+ [extensions]="getExtension(row.artifactType)"
+ (onFileUpload)="onFileUpload($event, row.artifactType)"
+ testId="upload_{{row.artifactDisplayName}}"
+ ></upload-artifact>
+ </div>
+ </ng-template>
+ </ngx-datatable-column>
+ <ngx-datatable-column [resizeable]="false" name="Download" [flexGrow]="1">
<ng-template ngx-datatable-cell-template let-row="row">
<div class="download-artifact-button">
<download-artifact [artifact]="row" [componentId]="componentId"