1 <ng-container *ngIf="subVolumes$ | async as subVolumes">
2 <cd-table [data]="subVolumes"
10 <ng-template #quotaUsageTpl
12 <cd-usage-bar *ngIf="row.info.bytes_pcent && row.info.bytes_pcent !== 'undefined'; else noLimitTpl"
13 [total]="row.info.bytes_quota"
14 [used]="row.info.bytes_pcent"
16 [calculatePerc]="false"
18 [customLegendValue]="row.info.bytes_quota"
19 decimals="2"></cd-usage-bar>
21 <ng-template #noLimitTpl>
22 <span ngbTooltip="Quota limit is not set"
23 *ngIf="row.info.bytes_pcent === 'undefined'"
25 {{row.info.bytes_used | dimlessBinary}}</span>
31 <cd-label [value]="value"></cd-label>
34 <ng-template #modeToHumanReadableTpl
36 <span *ngFor="let result of (value | octalToHumanReadable)"
37 [ngClass]="result.class"
38 [ngbTooltip]="result.toolTip">
45 <span class="fw-bold">{{row.name}}</span>
47 <span *ngIf="row.info.state === 'complete'; else snapshotRetainedTpl">
48 <i [ngClass]="[icons.success, icons.large]"
49 ngbTooltip="{{row.name}} is ready to use"
50 class="text-success"></i>
53 <ng-template #snapshotRetainedTpl>
54 <i [ngClass]="[icons.warning, icons.large]"
56 ngbTooltip="{{row.name}} is removed after retaining the snapshots"></i>
59 <cd-label [value]="row.info.type"
60 *ngIf="row.info.type !== 'subvolume'"></cd-label>
62 <cd-label value="namespaced"
63 *ngIf="row.info.pool_namespace"
64 [tooltipText]="row.info.pool_namespace"></cd-label>