]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
28992932f5264511dfeb7bb4020aea3658f12156
[ceph.git] /
1 <div class="btn-group"
2      dropdown>
3   <ng-container *ngIf="getCurrentButton() as action">
4     <button type="button"
5             class="btn btn-{{btnColor}}"
6             [ngClass]="{'disabled': disableSelectionAction(action)}"
7             (click)="useClickAction(action)"
8             [routerLink]="useRouterLink(action)">
9       <i [ngClass]="[action.icon]"></i><span>{{ action.name }}</span>
10     </button>
11   </ng-container>
12   <button type="button"
13           dropdownToggle
14           *ngIf="showDropDownActions()"
15           class="btn btn-{{btnColor}} dropdown-toggle dropdown-toggle-split">
16     <ng-container *ngIf="dropDownOnly">{{ dropDownOnly }} </ng-container>
17     <span *ngIf="!dropDownOnly"
18           class="sr-only"></span>
19   </button>
20   <ul *dropdownMenu
21       class="dropdown-menu"
22       role="menu">
23     <ng-container *ngFor="let action of dropDownActions">
24       <li role="menuitem"
25           class="{{ toClassName(action['name']) }}"
26           data-toggle="tooltip"
27           title="{{ useDisableDesc(action) }}">
28         <a class="dropdown-item"
29            (click)="useClickAction(action)"
30            [routerLink]="useRouterLink(action)"
31            [ngClass]="{'disabled': disableSelectionAction(action)}">
32           <i [ngClass]="[action.icon]"></i><span>{{ action.name }}</span>
33         </a>
34       </li>
35     </ng-container>
36   </ul>
37 </div>