]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
12d61d86e558e681800110624a508e67b6ddf045
[ceph.git] /
1 <cd-table
2   #poolConfTable
3   [data]="data"
4   [columns]="poolConfigurationColumns"
5   identifier="name">
6 </cd-table>
7
8 <ng-template #configurationSourceTpl
9              let-row="row"
10              let-value="value">
11
12   <div [ngSwitch]="value">
13     <span *ngSwitchCase="'global'" i18n>{{ value | titlecase }}</span>
14     <strong *ngSwitchCase="'image'" i18n>{{ value | titlecase }}</strong>
15     <strong *ngSwitchCase="'pool'" i18n>{{ value | titlecase }}</strong>
16   </div>
17 </ng-template>
18
19 <ng-template #configurationValueTpl
20              let-row="row"
21              let-value="value">
22   <div [ngSwitch]="row.type">
23     <span *ngSwitchCase="typeField.bps">{{ value | dimlessBinaryPerSecond }}</span>
24     <span *ngSwitchCase="typeField.milliseconds">{{ value | milliseconds }}</span>
25     <span *ngSwitchCase="typeField.iops">{{ value | iops }}</span>
26     <span *ngSwitchDefault>{{ value }}</span>
27   </div>
28 </ng-template>