blob: 7a18bce89796d3992a908fdd16a4b3b8f275b3b4 [file] [log] [blame]
Ittay Stern6f900cc2018-08-29 17:01:32 +03001<div class="drawing-board-header">
2 <div class="left-header">
3 <span class="vid-logo-small"></span>
4 <span class="icon-back">
5 <svg-icon
6 (click)="closePage()"
7 [testId]="'backBtn'"
8 [size]="'large'"
9 [name]="'navigation-arrow-back'">
Einat Vinouzee1f79742019-08-27 16:01:01 +030010 </svg-icon>
Ittay Stern6f900cc2018-08-29 17:01:32 +030011 </span>
12
Ittay Sternf7926712019-07-07 19:23:03 +030013 <div class="header-col middleDetails" style="padding-top: 7px;padding-left: 13px;line-height: 100%;" *ngIf="isServiceFailed">
Ittay Stern6f900cc2018-08-29 17:01:32 +030014 <custom-popover class="failed-popover-wrap" [value]= "serviceStatusMessage" [placement]="'bottom'" [popoverType]="'error'">
15 <span [attr.data-tests-id]="'service-failed-msg'" class="failed-msg labelPosition" >Failed</span>
16 </custom-popover>
17 </div>
18 <div class="header-col middleDetails" style="padding-top: 0px;padding-left: 13px;line-height: 100%;padding-right: 50px;">
19 <span [attr.data-tests-id]="'serviceInstance'" class="service-instance-label labelPosition">Service instance:</span>
20 <span [attr.data-tests-id]="'serviceName'" [ngClass]="{'deleted' : isDeleted}" class="service-instance-name">{{serviceName}}</span>
21 </div>
22 <div class="header-col middleDetails notShowOnCreateMode"
23 style="padding-top: 0px;padding-left: 13px;line-height: 100%;">
24 <span [attr.data-tests-id]="'orchStatusLabel'" class="service-instance-label labelPosition">Orch Status:</span>
Ittay Sternf7926712019-07-07 19:23:03 +030025 <span [attr.data-tests-id]="'orchStatusValue'"
26 [ngClass]="{'tag-status-value' :serviceOrchStatus?.toLowerCase()!= 'active'}"
27 class="orch-status-value">{{serviceOrchStatus}}</span>
Ittay Stern6f900cc2018-08-29 17:01:32 +030028 </div>
29 <div class="quantity-container header-col middleDetails"
30 style="padding-top: 0px;padding-left: 13px;line-height: 100%;"
31 tooltip="Number of services to instantiate including all their objects as defined below">
32 <span [attr.data-tests-id]="'quantityLabel'" class="quantity-instance-label labelPosition">Scale Times:</span>
33 <span [attr.data-tests-id]="'servicesQuantity'" class="scale-value"
34 style="font-family: OpenSans-Semibold;font-size: 13px;"> {{numServicesToDeploy}} </span>
35 </div>
36
37 <span [attr.data-tests-id]="'serviceStatus'" class="status" tooltip="{{status}}"></span>
38 <span [attr.data-tests-id]="'isViewOnly-status-test'" class="service-instance-label purple">{{getModeName()}}</span>
39 </div>
40
Ittay Stern6f900cc2018-08-29 17:01:32 +030041 <div class="right-header">
Einat Vinouzee1f79742019-08-27 16:01:01 +030042 <span
43 *ngIf = "isUpgrade || isDeleted || isResume"
44 [ngClass] = "isDeleted===true ? 'action-status-type-header delete' : 'action-status-type-header resume'"
45 [attr.data-tests-id]="determineDataTestId()">
46 {{getAction()}}
47 </span>
Ittay Stern6f900cc2018-08-29 17:01:32 +030048 <span class="menu-container notShowOnViewMode notShowOnRetryMode">
49 <span [attr.data-tests-id]="'openMenuBtn'" class="icon-browse" (click)="onContextMenu($event)"></span>
50 <context-menu>
51 <ng-template *ngIf="drawingBoardHeaderService?.showEditService(mode, serviceModelId)" contextMenuItem (execute)="editService()">
52 <div [attr.data-tests-id]="'context-menu-header-edit-item'">
53 <span class="icon-edit"></span>Edit</div>
54 </ng-template>
55 <ng-template *ngIf="mode === 'EDIT'" contextMenuItem
Ittay Sternf7926712019-07-07 19:23:03 +030056 (execute)="onDeleteUndoDeleteClick()">
Ittay Stern6f900cc2018-08-29 17:01:32 +030057 <div [attr.data-tests-id]="'context-menu-header-delete-item'"><span class="icon-trash"></span>{{isDeleted ? 'Undo delete': 'Delete'}}</div>
58 </ng-template>
59 <ng-template *ngIf="mode !== 'CREATE'" contextMenuItem
60 (execute)="drawingBoardHeaderService.showAuditInfo(serviceModelId)">
61 <div [attr.data-tests-id]="'context-menu-header-audit-item'" style="float: left;margin-top: 8px;">
62 <svg-icon
63 [ngClass]="'eye-o'"
64 class="eye-o"
65 [size]="'small'"
66 [name]="'eye-o'">
67 </svg-icon></div>
68 <div style="padding-left: 12px;">Show Audit Info</div>
69 </ng-template>
Ittay Sternf7926712019-07-07 19:23:03 +030070 <ng-template *ngIf="drawingBoardHeaderService?.showResumeService(serviceModelId)" contextMenuItem
71 (execute)="onResumeUndoResumeClick()">
72 <div [attr.data-tests-id]="'context-menu-header-resume-item'"><span class="icon-trash"></span>{{isResume ? 'Undo resume': 'Resume'}}</div>
73 </ng-template>
Ittay Stern6f900cc2018-08-29 17:01:32 +030074 </context-menu>
75 </span>
76 <button [disabled]="drawingBoardHeaderService?.deployShouldBeDisabled(serviceModelId, mode)"
77 *ngIf="mode !== 'VIEW' && mode !== 'RETRY'; else viewEditButton"
78 [attr.data-tests-id]="'deployBtn'"
79 (click)="deployService()"
80 class="deploy-btn">{{drawingBoardHeaderService?.getModeButton(mode)}}</button>
81 <ng-template #viewEditButton>
82 <button [disabled]="!isPermitted()"
83 [attr.data-tests-id]="'editBtn'"
84 (click)="editViewEdit()"
85 class="deploy-btn">{{drawingBoardHeaderService?.getButtonText(mode)}}
86 </button>
87 </ng-template>
88 </div>
89</div>