blob: b5e75841afe639a90b6bc657e8d80442d473bfa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
<cd-table #table
[autoReload]="false"
[data]="buckets"
[columns]="columns"
columnMode="flex"
selectionType="multiClick"
[hasDetails]="true"
(setExpandedRow)="setExpandedRow($event)"
(updateSelection)="updateSelection($event)"
identifier="bid"
(fetchData)="getBucketList($event)"
[status]="tableStatus">
<cd-table-actions class="table-actions"
[permission]="permission"
[selection]="selection"
[tableActions]="tableActions">
</cd-table-actions>
<cd-rgw-bucket-details cdTableDetail
[selection]="expandedRow">
</cd-rgw-bucket-details>
</cd-table>
<ng-template #bucketSizeTpl
let-row="row">
<cd-usage-bar *ngIf="row.bucket_quota.max_size > 0 && row.bucket_quota.enabled; else noSizeQuota"
[total]="row.bucket_quota.max_size"
[used]="row.bucket_size">
</cd-usage-bar>
<ng-template #noSizeQuota
i18n>No Limit</ng-template>
</ng-template>
<ng-template #bucketObjectTpl
let-row="row">
<cd-usage-bar *ngIf="row.bucket_quota.max_objects > 0 && row.bucket_quota.enabled; else noObjectQuota"
[total]="row.bucket_quota.max_objects"
[used]="row.num_objects"
[isBinary]="false">
</cd-usage-bar>
<ng-template #noObjectQuota
i18n>No Limit</ng-template>
</ng-template>
|