]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
f2e93cc742c7af957c7103f9053ad3c04f134a08
[ceph.git] /
1 <cd-alert-panel
2   *ngIf="(snapScheduleModuleStatus$ | async) === false"
3   type="info"
4   spacingClass="mb-3"
5   i18n
6   class="align-items-center"
7 >
8   In order to access the snapshot scheduler feature, the snap_scheduler module must be enabled
9   <button
10     class="btn btn-light mx-2"
11     type="button"
12     (click)="enableSnapshotSchedule()">
13     Enable
14   </button>
15 </cd-alert-panel>
16
17 <ng-template
18   #pathTpl
19   let-row="row">
20   <span
21     class="fw-bold"
22     [ngbTooltip]="fullpathTpl"
23     triggers="click:blur">
24     {{ row.path | path }}
25   </span>
26
27   <span
28   *ngIf="row.active; else inactiveStatusTpl">
29     <i
30       [ngClass]="[icons.success, icons.large]"
31       ngbTooltip="{{ row.path }} is active"
32       class="text-success"
33     ></i>
34   </span>
35
36   <ng-template #inactiveStatusTpl>
37     <i
38       [ngClass]="[icons.warning, icons.large]"
39       class="text-warning"
40       ngbTooltip="{{ row.path }} has been deactivated"
41     ></i>
42   </ng-template>
43
44   <ng-template #fullpathTpl>
45     <span
46       data-toggle="tooltip"
47       [title]="row.path"
48       class="font-monospace"
49       >{{ row.path }}
50       <cd-copy-2-clipboard-button
51         *ngIf="row.path"
52         [source]="row.path"
53         [byId]="false"
54         [showIconOnly]="true"
55       >
56       </cd-copy-2-clipboard-button>
57     </span>
58   </ng-template>
59 </ng-template>
60
61 <cd-table
62   [data]="snapshotSchedules$ | async"
63   *ngIf="snapScheduleModuleStatus$ | async"
64   columnMode="flex"
65   [columns]="columns"
66   selectionType="single"
67   [hasDetails]="false"
68   (fetchData)="fetchData()"
69   (updateSelection)="updateSelection($event)"
70 >
71   <div class="table-actions btn-toolbar">
72     <cd-table-actions
73       [permission]="permissions.cephfs"
74       [selection]="selection"
75       class="btn-group"
76       [tableActions]="tableActions$ | async"
77     >
78     </cd-table-actions>
79   </div>
80 </cd-table>