1 <ng-container *ngIf="subVolumes$ | async as subVolumes">
2 <cd-table [data]="subVolumes"
7 (fetchData)="fetchData()">
9 <div class="table-actions btn-toolbar">
10 <cd-table-actions [permission]="permissions.cephfs"
11 [selection]="selection"
13 id="cephfs-subvolume-actions"
14 [tableActions]="tableActions">
20 <ng-template #quotaUsageTpl
22 <cd-usage-bar *ngIf="row.info.bytes_pcent && row.info.bytes_pcent !== 'undefined'; else noLimitTpl"
23 [total]="row.info.bytes_quota"
24 [used]="row.info.bytes_pcent"
26 [calculatePerc]="false"
28 [customLegendValue]="row.info.bytes_quota"
29 decimals="2"></cd-usage-bar>
31 <ng-template #noLimitTpl>
32 <span ngbTooltip="Quota limit is not set"
33 *ngIf="row.info.bytes_pcent === 'undefined'"
35 {{row.info.bytes_used | dimlessBinary}}</span>
41 <cd-label [value]="value"></cd-label>
44 <ng-template #modeToHumanReadableTpl
46 <span *ngFor="let result of (value | octalToHumanReadable)"
47 [ngClass]="result.class"
48 [ngbTooltip]="result.toolTip">
55 <span class="fw-bold">{{row.name}}</span>
57 <span *ngIf="row.info.state === 'complete'; else snapshotRetainedTpl">
58 <i [ngClass]="[icons.success, icons.large]"
59 ngbTooltip="{{row.name}} is ready to use"
60 class="text-success"></i>
63 <ng-template #snapshotRetainedTpl>
64 <i [ngClass]="[icons.warning, icons.large]"
66 ngbTooltip="{{row.name}} is removed after retaining the snapshots"></i>
69 <cd-label [value]="row.info.type"
70 *ngIf="row.info.type !== 'subvolume'"></cd-label>
72 <cd-label value="namespaced"
73 *ngIf="row.info.pool_namespace"
74 [tooltipText]="row.info.pool_namespace"></cd-label>