]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
2e270057d579f462dfc3cb2337847c9f49f03350
[ceph.git] /
1 <ng-container *ngIf="isLoading$ | async">
2   <cd-loading-panel>
3     <span i18n>Loading snapshot schedules...</span>
4   </cd-loading-panel>
5 </ng-container>
6
7 <ng-template #pathTpl
8              let-row="row">
9   <span
10     class="fw-bold"
11     [ngbTooltip]="fullpathTpl"
12     triggers="click:blur">{{row.path | path}}</span>
13
14   <span *ngIf="row.active; else inactiveStatusTpl">
15     <i [ngClass]="[icons.success, icons.large]"
16        ngbTooltip="{{row.path}} is active"
17        class="text-success"></i>
18   </span>
19
20   <ng-template #inactiveStatusTpl>
21     <i [ngClass]="[icons.warning, icons.large]"
22        class="text-warning"
23        ngbTooltip="{{row.path}} has been deactivated"></i>
24   </ng-template>
25
26   <ng-template #fullpathTpl>
27   <span data-toggle="tooltip"
28         [title]="row.path"
29         class="font-monospace">{{ row.path }}
30     <cd-copy-2-clipboard-button *ngIf="row.path"
31                                 [source]="row.path"
32                                 [byId]="false"
33                                 [showIconOnly]="true">
34     </cd-copy-2-clipboard-button>
35   </span>
36 </ng-template>
37
38 </ng-template>
39
40 <cd-table
41   [data]="snapshotSchedules$ | async"
42   columnMode="flex"
43   [columns]="columns"
44   selectionType="single"
45   [hasDetails]="false"
46   (fetchData)="fetchData()"
47   (updateSelection)="updateSelection($event)"
48 >
49   <div class="table-actions btn-toolbar">
50     <cd-table-actions
51       [permission]="permissions.cephfs"
52       [selection]="selection"
53       class="btn-group"
54       [tableActions]="tableActions"
55     >
56     </cd-table-actions>
57   </div>
58 </cd-table>