1 <ng-container *ngIf="subVolumes$ | async as subVolumes">
2 <cd-table [data]="subVolumes"
7 (fetchData)="fetchData()"
8 (updateSelection)="updateSelection($event)">
10 <div class="table-actions btn-toolbar">
11 <cd-table-actions [permission]="permissions.cephfs"
12 [selection]="selection"
14 id="cephfs-subvolume-actions"
15 [tableActions]="tableActions">
21 <ng-template #quotaUsageTpl
23 <cd-usage-bar *ngIf="row.info.bytes_pcent && row.info.bytes_pcent !== 'undefined'; else noLimitTpl"
24 [total]="row.info.bytes_quota"
25 [used]="row.info.bytes_used"
27 [showFreeToolTip]="false"
29 [customLegendValue]="row.info.bytes_quota"
30 decimals="2"></cd-usage-bar>
32 <ng-template #noLimitTpl>
33 <span ngbTooltip="Quota limit is not set"
34 *ngIf="row.info.bytes_pcent === 'undefined'"
36 {{row.info.bytes_used | dimlessBinary}}</span>
42 <cd-label [value]="value"></cd-label>
45 <ng-template #modeToHumanReadableTpl
47 <span *ngFor="let result of (value | octalToHumanReadable)"
48 [ngClass]="result.class"
49 [ngbTooltip]="result.toolTip">
56 <span class="fw-bold">{{row.name}}</span>
58 <span *ngIf="row.info.state === 'complete'; else snapshotRetainedTpl">
59 <i [ngClass]="[icons.success, icons.large]"
60 ngbTooltip="{{row.name}} is ready to use"
61 class="text-success"></i>
64 <ng-template #snapshotRetainedTpl>
65 <i [ngClass]="[icons.warning, icons.large]"
67 ngbTooltip="{{row.name}} is removed after retaining the snapshots"></i>
70 <cd-label [value]="row.info.type"
71 *ngIf="row.info.type !== 'subvolume'"></cd-label>
73 <cd-label value="namespaced"
74 *ngIf="row.info.pool_namespace"
75 [tooltipText]="row.info.pool_namespace"></cd-label>
78 <ng-template #removeTmpl
80 <ng-container [formGroup]="form">
81 <ng-container formGroupName="child">
82 <cd-alert-panel *ngIf="errorMessage.length > 1"
86 <div class="form-group">
87 <div class="custom-control custom-checkbox">
88 <input type="checkbox"
89 class="custom-control-input"
90 name="retainSnapshots"
92 formControlName="retainSnapshots">
93 <label class="custom-control-label"
95 i18n>Retain snapshots <cd-helper>The subvolume can be removed retaining
96 existing snapshots using this option.
97 If snapshots are retained, the subvolume is considered empty for all
98 operations not involving the retained snapshots.</cd-helper></label>