summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src
diff options
context:
space:
mode:
authorYoav Schneiderman <yoav.schneiderman@intl.att.com>2019-12-29 14:33:21 +0200
committerYoav Schneiderman <yoav.schneiderman@intl.att.com>2019-12-29 14:33:21 +0200
commitecfe8e2220e7c85d309e0171846832c312356ce1 (patch)
tree4828ab085a3e18d0e56914bd551bca1bf2f2981f /vid-webpack-master/src
parent3795519f98415037e9d567af85f8eafd2948971d (diff)
VFModule with missing data should show alert icon
Issue-ID: VID-737 Signed-off-by: Yoav Schneiderman <yoav.schneiderman@intl.att.com> Change-Id: I02b4cc9defb87ab618e395c8c608f48a93461e6f
Diffstat (limited to 'vid-webpack-master/src')
-rw-r--r--vid-webpack-master/src/app/drawingBoard/service-planning/drawing-board-tree/drawing-board-tree.html13
1 files changed, 6 insertions, 7 deletions
diff --git a/vid-webpack-master/src/app/drawingBoard/service-planning/drawing-board-tree/drawing-board-tree.html b/vid-webpack-master/src/app/drawingBoard/service-planning/drawing-board-tree/drawing-board-tree.html
index 8db53e808..ea2362949 100644
--- a/vid-webpack-master/src/app/drawingBoard/service-planning/drawing-board-tree/drawing-board-tree.html
+++ b/vid-webpack-master/src/app/drawingBoard/service-planning/drawing-board-tree/drawing-board-tree.html
@@ -27,7 +27,8 @@
id="drawing-board-tree">
<ng-template #treeNodeTemplate let-node let-index="index">
- <div class="main-row" [attr.id]="getNodeId(node)" [attr.data-tests-id]="'node-'+node.data.modelId +'-' +node.data.modelName"
+ <div class="main-row" [attr.id]="getNodeId(node)"
+ [attr.data-tests-id]="'node-'+node.data.modelId +'-' +node.data.modelName"
(click)="selectNode(node)"
[ngClass]="{'isLinked' : isLinkedInstance(node?.data)}">
<custom-popover class="failed-popover-wrap" *ngIf="node?.data?.isFailed" [value]="node?.data?.statusMessage"
@@ -89,10 +90,10 @@
</context-menu>
</span>
<span
- *ngIf="drawingBoardTreeService.isVNFMissingData(node, serviceModelId)"
+ *ngIf="drawingBoardTreeService.isVNFMissingData(node, serviceModelId) || drawingBoardTreeService.isVFModuleMissingData(node, serviceModelId)"
tooltip="{{ missingDataTooltip }}"
tooltipPlacement="left"
- [attr.data-tests-id]="'node-'+node.data.modelId +'-' +node.data.modelName+'-alert-icon'"
+ [attr.data-tests-id]="'node-'+ node.data.modelId + '-' + node.data.modelName +'-alert-icon'"
class="icon-alert">
<svg-icon
[mode]="'warning'"
@@ -101,15 +102,13 @@
[name]="'alert-triangle-o'">
</svg-icon>
</span>
- <span *ngIf="drawingBoardTreeService.isVFModuleMissingData(node, serviceModelId)" class="icon-alert"
- tooltip="{{ missingDataTooltip }}" tooltipPlacement="left"
- [attr.data-tests-id]="'node-'+node.data.modelId +'-' +node.data.modelName+'-alert-icon'"></span>
</div>
<div class="action-status">
<span
[ngClass]="isUpgraded(node)?'action-status-type upgrade':'action-status-type delete'"
- [attr.data-tests-id]="isUpgraded(node)?'action-status-type':'delete-status-type'" [ngStyle]="{ 'opacity': isUpgraded(node) || isDeleted(node) ? '1' : '0'}">{{isUpgraded(node)?"Upgrade":"Delete"}}</span>
+ [attr.data-tests-id]="isUpgraded(node)?'action-status-type':'delete-status-type'"
+ [ngStyle]="{ 'opacity': isUpgraded(node) || isDeleted(node) ? '1' : '0'}">{{isUpgraded(node) ? "Upgrade" : "Delete"}}</span>
</div>
</div>
</ng-template>