| <!-- |
| Copyright 2020 TATA ELXSI |
| |
| Licensed under the Apache License, Version 2.0 (the 'License'); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in) |
| --> |
| <div class="btn-group list action" role="group"> |
| <ng-template #popTitle> |
| <span class="text-primary"><strong>{{'PAGE.DASHBOARD.RUNNINGINSTANCES' | translate}}</strong></span> |
| <button class="button-xs close" type="button" (click)="p.close()"> |
| <i class="fas fa-times-circle text-danger"></i> |
| </button> |
| </ng-template> |
| <ng-template #popContent> |
| <ul class="list-group"> |
| <li class="list-group-item text-left p-1 border-0" *ngFor="let instanceDetails of showInstanceDetails"> |
| <a class="d-block text-truncate" target="_parent" routerLink="/instances/ns/{{instanceDetails._id}}"> |
| <i class="fa-sitemap fas icons"></i> {{instanceDetails.name}} |
| </a> |
| </li> |
| </ul> |
| </ng-template> |
| <ng-template #graphTitle> |
| <span class="text-primary"><strong>{{'PAGE.VIMDETAILS.VIMRESOURCES' | translate}}</strong></span> |
| <button class="button-xs close" type="button" (click)="chart.close()"> |
| <i class="fas fa-times-circle text-danger"></i> |
| </button> |
| </ng-template> |
| <ng-template #graphContent> |
| <app-resources-overview [resourcesData]="value"></app-resources-overview> |
| </ng-template> |
| <button type="button" class="btn btn-primary" placement="left" container="body" |
| [ngbPopover]="graphContent" triggers="manual" #chart="ngbPopover" |
| (click)="chart.open()" [autoClose]="'outside'" [popoverTitle]="graphTitle" popoverClass="resources-chart-popover" |
| [disabled]="value.resources === null"> |
| <i class="fas fa-chart-pie"></i> |
| </button> |
| <button type="button" class="btn btn-primary" (click)="vimInfo()" placement="top" container="body" |
| ngbTooltip="{{'INFO' | translate}}"> |
| <i class="fas fa-info icons"></i> |
| </button> |
| <button type="button" class="btn btn-primary" (click)="deleteVIMAccount()" placement="top" container="body" |
| ngbTooltip="{{'DELETE' | translate}}"> |
| <i class="far fa-trash-alt icons"></i> |
| </button> |
| <button type="button" placement="left" container="body" [ngbPopover]="popContent" triggers="manual" #p="ngbPopover" |
| (click)="p.open()" [autoClose]="'outside'" [popoverTitle]="popTitle" class="btn btn-primary" |
| popoverClass="runninginstances" [disabled]="!showMapIcon"> |
| <i class="fas fa-layer-group"></i> |
| </button> |
| </div> |