totalProvisionedNotAvailableTooltipTpl: TemplateRef<any>;
@ViewChild('forcePromoteConfirmation', { static: true })
forcePromoteConfirmation: TemplateRef<any>;
+ @ViewChild('usedTmpl', { static: true })
+ usedTmpl: TemplateRef<any>;
+ @ViewChild('totalUsedTmpl', { static: true })
+ totalUsedTmpl: TemplateRef<any>;
permission: Permission;
tableActions: CdTableAction[];
pipe: this.dimlessBinaryPipe
},
{
- name: $localize`Objects`,
- prop: 'num_objs',
- flexGrow: 1,
+ name: $localize`Used`,
+ prop: 'disk_usage',
cellClass: 'text-right',
+ flexGrow: 1,
+ pipe: this.dimlessBinaryPipe,
sortable: false,
- pipe: this.dimlessPipe
+ headerTemplate: this.usedTmpl,
+ cellTemplate: this.provisionedNotAvailableTooltipTpl
},
{
- name: $localize`Object size`,
- prop: 'obj_size',
- flexGrow: 1,
+ name: $localize`Total used`,
+ prop: 'total_disk_usage',
cellClass: 'text-right',
+ flexGrow: 1,
+ pipe: this.dimlessBinaryPipe,
sortable: false,
- pipe: this.dimlessBinaryPipe
+ headerTemplate: this.totalUsedTmpl,
+ cellTemplate: this.totalProvisionedNotAvailableTooltipTpl
},
{
- name: $localize`Provisioned`,
- prop: 'disk_usage',
- cellClass: 'text-center',
+ name: $localize`Objects`,
+ prop: 'num_objs',
flexGrow: 1,
- pipe: this.dimlessBinaryPipe,
+ cellClass: 'text-right',
sortable: false,
- cellTemplate: this.provisionedNotAvailableTooltipTpl
+ pipe: this.dimlessPipe
},
{
- name: $localize`Total provisioned`,
- prop: 'total_disk_usage',
- cellClass: 'text-center',
+ name: $localize`Object size`,
+ prop: 'obj_size',
flexGrow: 1,
- pipe: this.dimlessBinaryPipe,
+ cellClass: 'text-right',
sortable: false,
- cellTemplate: this.totalProvisionedNotAvailableTooltipTpl
+ pipe: this.dimlessBinaryPipe
},
{
name: $localize`Parent`,