Fix Bug 1973: VIM Resources Type Overview issue in Dashboard
[osm/NG-UI.git] / src / app / utilities / vim-accounts-action / VimAccountsActionComponent.html
1 <!--
2 Copyright 2020 TATA ELXSI
3
4 Licensed under the Apache License, Version 2.0 (the 'License');
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
17 -->
18 <div class="btn-group list action" role="group">
19 <ng-template #popTitle>
20 <span class="text-primary"><strong>{{'PAGE.DASHBOARD.RUNNINGINSTANCES' | translate}}</strong></span>
21 <button class="button-xs close" type="button" (click)="p.close()">
22 <i class="fas fa-times-circle text-danger"></i>
23 </button>
24 </ng-template>
25 <ng-template #popContent>
26 <ul class="list-group">
27 <li class="list-group-item text-left p-1 border-0" *ngFor="let instanceDetails of showInstanceDetails">
28 <a class="d-block text-truncate" target="_parent" routerLink="/instances/ns/{{instanceDetails._id}}">
29 <i class="fa-sitemap fas icons"></i> {{instanceDetails.name}}
30 </a>
31 </li>
32 </ul>
33 </ng-template>
34 <ng-template #graphTitle>
35 <span class="text-primary"><strong>{{'PAGE.VIMDETAILS.VIMRESOURCES' | translate}}</strong></span>
36 <button class="button-xs close" type="button" (click)="chart.close()">
37 <i class="fas fa-times-circle text-danger"></i>
38 </button>
39 </ng-template>
40 <ng-template #graphContent>
41 <app-resources-overview [resourcesData]="value"></app-resources-overview>
42 </ng-template>
43 <button type="button" class="btn btn-primary" placement="left" container="body"
44 [ngbPopover]="graphContent" triggers="manual" #chart="ngbPopover"
45 (click)="chart.open()" [autoClose]="'outside'" [popoverTitle]="graphTitle" popoverClass="resources-chart-popover"
46 [disabled]="value.resources === null">
47 <i ngbTooltip="{{'PAGE.VIMDETAILS.VIMRESOURCES' | translate}}" class="fas fa-chart-pie"></i>
48 </button>
49 <button type="button" class="btn btn-primary" (click)="vimInfo()" placement="top" container="body"
50 ngbTooltip="{{'INFO' | translate}}">
51 <i class="fas fa-info icons"></i>
52 </button>
53 <button type="button" class="btn btn-primary" (click)="deleteVIMAccount()" placement="top" container="body"
54 ngbTooltip="{{'DELETE' | translate}}">
55 <i class="far fa-trash-alt icons"></i>
56 </button>
57 <button type="button" placement="left" container="body" [ngbPopover]="popContent" triggers="manual" #p="ngbPopover"
58 (click)="p.open()" [autoClose]="'outside'" [popoverTitle]="popTitle" class="btn btn-primary"
59 popoverClass="runninginstances" [disabled]="!showMapIcon">
60 <i ngbTooltip="{{'PAGE.DASHBOARD.RUNNINGINSTANCES' | translate}}" class="fas fa-layer-group"></i>
61 </button>
62 </div>