3 *ngIf="subVolumeGroups$ | async as subVolumeGroups">
4 <cd-vertical-navigation title="Groups"
5 [items]="subvolumeGroupList"
6 inputIdentifier="group-filter"
7 (emitActiveItem)="selectSubVolumeGroup($event)"></cd-vertical-navigation>
9 <div class="col-10 vertical-line">
10 <cd-table [data]="subVolumes$ | async"
13 selectionType="single"
15 (fetchData)="fetchData()"
16 (updateSelection)="updateSelection($event)">
18 <div class="table-actions">
19 <cd-table-actions [permission]="permissions.cephfs"
20 [selection]="selection"
22 id="cephfs-subvolume-actions"
23 [tableActions]="tableActions">
30 <ng-template #quotaUsageTpl
32 <cd-usage-bar *ngIf="row.info.bytes_pcent && row.info.bytes_pcent !== 'undefined'; else noLimitTpl"
33 [total]="row.info.bytes_quota"
34 [used]="row.info.bytes_used"
36 [showFreeToolTip]="false"
38 [customLegendValue]="row.info.bytes_quota"
39 decimals="2"></cd-usage-bar>
41 <ng-template #noLimitTpl>
42 <span ngbTooltip="Quota limit is not set"
43 *ngIf="row.info.bytes_pcent === 'undefined'"
45 {{row.info.bytes_used | dimlessBinary}}</span>
50 let-value="data.value">
51 <cd-label [value]="value"></cd-label>
54 <ng-template #modeToHumanReadableTpl
55 let-value="data.value">
56 <span *ngFor="let result of (value | octalToHumanReadable)"
57 [ngClass]="result.class"
58 [ngbTooltip]="result.toolTip">
65 <span class="fw-bold">{{row.name}}</span>
67 <span *ngIf="row?.info?.state === 'complete'; else snapshotRetainedTpl">
68 <i [ngClass]="[icons.success, icons.large]"
69 ngbTooltip="{{row.name}} is ready to use"
70 class="text-success"></i>
73 <ng-template #snapshotRetainedTpl>
74 <i [ngClass]="[icons.warning, icons.large]"
76 ngbTooltip="{{row.name}} is removed after retaining the snapshots"></i>
79 <cd-label [value]="row.info.type"
80 *ngIf="row.info.type !== 'subvolume'"></cd-label>
82 <cd-label value="namespaced"
83 *ngIf="row.info.pool_namespace"
84 [tooltipText]="row.info.pool_namespace"></cd-label>
87 <ng-template #removeTmpl
89 <ng-container [formGroup]="form">
90 <ng-container formGroupName="child">
91 <cd-alert-panel *ngIf="errorMessage.length > 1"
95 <div class="form-group">
96 <div class="custom-control custom-checkbox">
97 <input type="checkbox"
98 class="custom-control-input"
99 name="retainSnapshots"
101 formControlName="retainSnapshots">
102 <label class="custom-control-label"
103 for="retainSnapshots"
104 i18n>Retain snapshots <cd-helper>The subvolume can be removed retaining
105 existing snapshots using this option.
106 If snapshots are retained, the subvolume is considered empty for all
107 operations not involving the retained snapshots.</cd-helper></label>