]>
git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-actions/table-actions.component.html
905aaa96b69be5721fad0edc874f2ce4ab198bbb
1 <div class=
"btn-group">
2 <ng-container *
ngIf=
"currentAction">
4 title=
"{{ useDisableDesc(currentAction) }}"
5 class=
"btn btn-{{btnColor}}"
6 [ngClass]=
"{'disabled': disableSelectionAction(currentAction)}"
7 (click)=
"useClickAction(currentAction)"
8 [routerLink]=
"useRouterLink(currentAction)"
9 [attr.aria-label]=
"currentAction.name"
10 [preserveFragment]=
"currentAction.preserveFragment ? '' : null">
11 <i [ngClass]=
"[currentAction.icon]"></i>
12 <span>{{ currentAction.name }}
</span>
15 <div class=
"btn-group"
18 *
ngIf=
"dropDownActions.length > 1"
19 aria-label=
"Button group with nested dropdown">
20 <button class=
"btn btn-{{btnColor}} dropdown-toggle-split"
22 <ng-container *
ngIf=
"dropDownOnly">{{ dropDownOnly }}
</ng-container>
23 <span *
ngIf=
"!dropDownOnly"
24 class=
"sr-only"></span>
26 <div class=
"dropdown-menu"
28 <ng-container *
ngFor=
"let action of dropDownActions">
29 <button ngbDropdownItem
30 class=
"{{ toClassName(action) }}"
31 title=
"{{ useDisableDesc(action) }}"
32 (click)=
"useClickAction(action)"
33 [routerLink]=
"useRouterLink(action)"
34 [preserveFragment]=
"action.preserveFragment ? '' : null"
35 [disabled]=
"disableSelectionAction(action)"
36 [attr.aria-label]=
"action.name">
37 <i [ngClass]=
"[action.icon, 'action-icon']"></i>
38 <span>{{ action.name }}
</span>