]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-list/rgw-bucket-list.component.html
import 15.2.5
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / rgw / rgw-bucket-list / rgw-bucket-list.component.html
1 <cd-alert-panel *ngIf="isStale"
2 type="warning"
3 size="slim"
4 i18n>The bucket list data might be stale. If needed, you can manually reload it.</cd-alert-panel>
5 <cd-table #table
6 [autoReload]="false"
7 [data]="buckets"
8 [columns]="columns"
9 columnMode="flex"
10 selectionType="multiClick"
11 [hasDetails]="true"
12 (setExpandedRow)="setExpandedRow($event)"
13 (updateSelection)="updateSelection($event)"
14 identifier="bid"
15 (fetchData)="getBucketList($event)">
16 <cd-table-actions class="table-actions"
17 [permission]="permission"
18 [selection]="selection"
19 [tableActions]="tableActions">
20 </cd-table-actions>
21 <cd-rgw-bucket-details cdTableDetail
22 [selection]="expandedRow">
23 </cd-rgw-bucket-details>
24 </cd-table>
25
26 <ng-template #bucketSizeTpl
27 let-row="row">
28 <cd-usage-bar *ngIf="row.bucket_quota.max_size > 0 && row.bucket_quota.enabled; else noSizeQuota"
29 [total]="row.bucket_quota.max_size"
30 [used]="row.bucket_size">
31 </cd-usage-bar>
32
33 <ng-template #noSizeQuota>No Limit</ng-template>
34 </ng-template>
35
36 <ng-template #bucketObjectTpl
37 let-row="row">
38 <cd-usage-bar *ngIf="row.bucket_quota.max_objects > 0 && row.bucket_quota.enabled; else noObjectQuota"
39 [total]="row.bucket_quota.max_objects"
40 [used]="row.num_objects"
41 [isBinary]="false">
42 </cd-usage-bar>
43
44 <ng-template #noObjectQuota>No Limit</ng-template>
45 </ng-template>