| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 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"> |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 19 | <button *ngIf="getK8sType === 'repo'" type="button" class="btn btn-primary" (click)="infoK8s(getK8sType)" |
| 20 | placement="top" container="body" ngbTooltip="{{'INFO' | translate}}"> |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 21 | <i class="fas fa-info icons list" title="info"></i> |
| 22 | </button> |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 23 | <button *ngIf="(isCluster || isProfile || isKSU) && getK8sType !== 'repo' && !checkRegister" [disabled]="state != 'CREATED'" |
| 24 | type="button" class="btn btn-primary" (click)="deleteK8s()" placement="top" container="body" |
| 25 | ngbTooltip="{{'DELETE' | translate}}"> |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 26 | <i class="far fa-trash-alt icons" title="delete"></i> |
| 27 | </button> |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 28 | <button *ngIf="(!isCluster || !isProfile || !isKSU) && getK8sType === 'repo'" type="button" class="btn btn-primary" |
| 29 | (click)="deleteK8s()" placement="top" container="body" ngbTooltip="{{'DELETE' | translate}}"> |
| 30 | <i class="far fa-trash-alt icons" title="delete"></i> |
| 31 | </button> |
| 32 | <button *ngIf="checkRegister && !isCluster && !isProfile && !isKSU && getK8sType !== 'repo'" |
| 33 | [disabled]="state != 'CREATED'" type="button" class="btn btn-primary" (click)="deleteK8s()" placement="top" |
| 34 | container="body" ngbTooltip="{{'DEREGISTER' | translate}}"> |
| 35 | <i class="fas fa-window-close icons" title="deregister"></i> |
| 36 | </button> |
| 37 | <div *ngIf="isCluster && !isProfile && !isKSU && getK8sType !== 'repo'" class="btn-group" placement="bottom-right" ngbDropdown |
| 38 | display="dynamic" container="body"> |
| 39 | <button type="button" class="btn btn-primary" [disabled]="state != 'CREATED'" ngbDropdownToggle placement="top" container="body" |
| 40 | ngbTooltip="{{'Attach Profile' | translate}}"> |
| 41 | <i class="fas fa-link"></i> |
| 42 | </button> |
| 43 | <div class="dropdown-menu list-action-dropdown" ngbDropdownMenu> |
| 44 | <button type="button" class="btn btn-primary dropdown-item" placement="left" container="body" |
| 45 | (click)="editClusterProfile('infra-config')" ngbTooltip="{{'PAGE.K8S.ATTACHINFRACONFIG' | translate}}"> |
| 46 | <i class="fa fa-link"></i> {{'PAGE.K8S.ATTACHINFRACONFIG' | translate}} |
| 47 | </button> |
| 48 | <button type="button" class="btn btn-primary dropdown-item" (click)="editClusterProfile('infra-controller')" |
| 49 | placement="left" container="body" ngbTooltip="{{'PAGE.K8S.ATTACHINFRACONTROLLER' | translate}}"> |
| 50 | <i class="fas fa-link"></i> {{'PAGE.K8S.ATTACHINFRACONTROLLER' | translate}} |
| 51 | </button> |
| 52 | <button type="button" class="btn btn-primary dropdown-item" placement="left" |
| 53 | (click)="editClusterProfile('app-profile')" container="body" ngbTooltip="{{'PAGE.K8S.ATTACHAPP' | translate}}"> |
| 54 | <i class="fas fa-link"></i> {{'PAGE.K8S.ATTACHAPP' | translate}} |
| 55 | </button> |
| 56 | <button type="button" class="btn btn-primary dropdown-item" placement="left" |
| 57 | (click)="editClusterProfile('resource-profile')" container="body" |
| 58 | ngbTooltip="{{'PAGE.K8S.ATTACHRESOURCE' | translate}}"> |
| 59 | <i class="fas fa-link"></i> {{'PAGE.K8S.ATTACHRESOURCE' | translate}} |
| 60 | </button> |
| 61 | </div> |
| 62 | </div> |
| 63 | <div *ngIf="(isProfile || isKSU || isCluster && getK8sType !== 'repo')" class="btn-group" ngbDropdown display="dynamic" container="body"> |
| 64 | <button type="button" [disabled]="state != 'CREATED'" class="btn btn-primary dropdown-toggle action-button" ngbDropdownToggle> |
| 65 | {{'ACTION' | translate}} |
| 66 | </button> |
| 67 | <div class="dropdown-menu list-action-dropdown" ngbDropdownMenu> |
| 68 | <button *ngIf="isProfile && !KSU && !isCluster" type="button" class="btn btn-primary dropdown-item" |
| 69 | placement="left" container="body" (click)="editProfile(getK8sType)" ngbTooltip="{{'PAGE.K8S.EDITPROFILE' | translate}}"> |
| 70 | <i class="fa fa-edit icons"></i> {{'PAGE.K8S.EDITPROFILE' | translate}} |
| 71 | </button> |
| 72 | <button *ngIf="isKSU && !isProfile && !isCluster" type="button" class="btn btn-primary dropdown-item" |
| 73 | placement="left" (click)="moveKsu()" container="body" ngbTooltip="{{'PAGE.K8S.MOVE' | translate}}"> |
| 74 | <i class="fas fa-truck-moving"></i> {{'PAGE.K8S.MOVE' | translate}} |
| 75 | </button> |
| 76 | <button *ngIf="isKSU && !isProfile && !isCluster" type="button" class="btn btn-primary dropdown-item" |
| 77 | placement="left" (click)="cloneKsu()" container="body" ngbTooltip="{{'PAGE.K8S.CLONE' | translate}}"> |
| 78 | <i class="fa fa-clone icons"></i> {{'PAGE.K8S.CLONE' | translate}} |
| 79 | </button> |
| 80 | <button *ngIf="isKSU && !isProfile && !isCluster" type="button" class="btn btn-primary dropdown-item" |
| 81 | placement="left" (click)="editKsu()" container="body" ngbTooltip="{{'EDIT' | translate}}"> |
| 82 | <i class="fa fa-edit icons"></i> {{'EDIT' | translate}} |
| 83 | </button> |
| 84 | <button *ngIf="!isKSU && !isProfile && isCluster" type="button" class="btn btn-primary dropdown-item" |
| 85 | placement="left" (click)="editCluster('upgrade')" container="body" ngbTooltip="{{'PAGE.K8S.UPGRADE' | translate}}"> |
| 86 | <i class="fa fa-arrow-up"></i> {{'PAGE.K8S.UPGRADE' | translate}} |
| 87 | </button> |
| 88 | <button *ngIf="!isKSU && !isProfile && isCluster" type="button" class="btn btn-primary dropdown-item" |
| 89 | placement="left" (click)="editCluster('scale')" container="body" ngbTooltip="{{'PAGE.K8S.SCALE' | translate}}"> |
| 90 | <i class="fas fa-compress-alt"></i> {{'PAGE.K8S.SCALE' | translate}} |
| 91 | </button> |
| SANDHYA.JS | b534715 | 2024-10-15 11:41:45 +0530 | [diff] [blame^] | 92 | <button *ngIf="!isKSU && !isProfile && isCluster" type="button" class="btn btn-primary dropdown-item" |
| 93 | placement="left" (click)="getCredentials()" container="body" ngbTooltip="{{'PAGE.K8S.GETCREDENTIALS' | translate}}"> |
| 94 | <i class="fas fa-download icons"></i> {{'PAGE.K8S.GETCREDENTIALS' | translate}} |
| 95 | </button> |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 96 | </div> |
| SANDHYA.JS | b534715 | 2024-10-15 11:41:45 +0530 | [diff] [blame^] | 97 | </div> |
| 98 | <app-loader [waitingMessage]="message" *ngIf="isLoadingDownloadResult"></app-loader> |