1 <div class="deployment-artifact-page" *ngIf="(workspaceState$ | async) as state">
2 <svg-icon-label *ngIf="!state.isViewOnly" class="add-artifact-btn" [clickable]="true" [mode]="'primary'" [labelPlacement]="'right'"
3 [label]="'Add'" [name]="'plus'"
4 (click)="addOrUpdateArtifact()"></svg-icon-label>
8 [footerHeight]="'undefined'"
11 [rows]="deploymentArtifacts$ | async"
12 #deploymentArtifactsTable>
13 <ngx-datatable-column [resizeable]="false" name="Name" [flexGrow]="1">
14 <ng-template ngx-datatable-cell-template let-row="row">
15 <div *ngIf="row.generatedFromId" class="env-artifact-container">
16 <div class="env-artifact"></div>
18 <span sdc-tooltip [tooltip-text]="row.artifactDisplayName" [tooltip-placement]="3" [attr.data-tests-id]="'artifactDisplayName_' + row.artifactDisplayName">{{row.artifactDisplayName}}</span>
19 <span *ngIf="row.description.length > 0" class="info">
20 <svg-icon [clickable]="true" [name]="'comment'" [mode]="'primary2'" (click)="openPopOver('Description',row.description,{x:$event.pageX , y:$event.pageY },'bottom')"></svg-icon>
23 </ngx-datatable-column>
24 <ngx-datatable-column [resizeable]="false" name="Type" [flexGrow]="0.6">
25 <ng-template ngx-datatable-cell-template let-row="row">
26 <span sdc-tooltip [tooltip-text]="row.artifactType" [tooltip-placement]="3" [attr.data-tests-id]="'artifactType_' + row.artifactDisplayName">{{row.artifactType}}</span>
28 </ngx-datatable-column> exactly 2 tosca artifacts
29 <ngx-datatable-column [resizeable]="false" name="Version" [flexGrow]="0.3">
30 <ng-template ngx-datatable-cell-template let-row="row">
31 <span [attr.data-tests-id]="'artifactVersion_' + row.artifactDisplayName">{{ row.artifactVersion }}</span>
33 </ngx-datatable-column>
34 <ngx-datatable-column [resizeable]="false" name="UUID" [flexGrow]="1">
35 <ng-template ngx-datatable-cell-template let-row="row">
36 <span sdc-tooltip [tooltip-text]="row.artifactUUID" [tooltip-placement]="3">{{ row.artifactUUID }}</span>
38 </ngx-datatable-column>
39 <ngx-datatable-column [resizeable]="false" [flexGrow]="0.6">
40 <ng-template ngx-datatable-cell-template let-row="row">
41 <div class="download-artifact-button">
42 <svg-icon *ngIf="!row.heatParameters?.length && !state.isViewOnly" class="action-icon action-icon-1" [mode]="'primary2'" [name]="'edit-o'"
43 testId="edit_{{row.artifactDisplayName}}" clickable="true" size="medium"
44 (click)="addOrUpdateArtifact(row, state.isViewOnly)"></svg-icon>
45 <svg-icon *ngIf="row.heatParameters?.length && !state.isViewOnly" class="action-icon action-icon-2" [mode]="'primary2'" [name]="'indesign_status'"
46 testId="update_heat_params_{{row.artifactDisplayName}}" clickable="true" size="medium"
47 (click)="updateEnvParams(row, state.isViewOnly)"></svg-icon>
48 <svg-icon *ngIf="!row.isFromCsar && !state.isViewOnly" class="action-icon action-icon-3" [mode]="'primary2'" [name]="'trash-o'"
49 testId="delete_{{row.artifactDisplayName}}" clickable="true" size="medium" (click)="deleteArtifact(row)"></svg-icon>
50 <svg-icon *ngIf="row.isGenericBrowseable()" class="action-icon action-icon-4" [mode]="'primary2'" [name]="'search-o'"
51 testId="gab-{{row.artifactDisplayName}}" clickable="true" size="medium" (click)="openGenericArtifactBrowserModal(row)"></svg-icon>
56 </ngx-datatable-column>
58 <ngx-datatable-footer>
59 <ng-template ngx-datatable-footer-template>
60 <div class="table-footer-container">
61 <sdc-button *ngIf="!state.isViewOnly" [type]="'secondary'"
62 [testId]="'add_artifact_btn'"
63 [text]="'DEPLOYMENT_ARTIFACT_BUTTON_ADD_OTHER' | translate"
64 [icon_name]="'plus-circle-o'"
65 [icon_mode] = "'secondary'"
66 [icon_position]="'left'"
67 (click)="addOrUpdateArtifact()">
71 </ngx-datatable-footer>