- Convert the boolean values true|false to a check icon in datatable columns.
- Remove unused code in the user management list.
Fixes: https://tracker.ceph.com/issues/46209
Signed-off-by: Volker Theile <vtheile@suse.com>
(cherry picked from commit
277b3f636e6c65291bed037c1b9c69563e28de35)
{
name: this.i18n('Available'),
prop: 'available',
- flexGrow: 1
+ flexGrow: 1,
+ cellClass: 'text-center',
+ cellTransformation: CellTemplate.checkIcon
},
{
name: this.i18n('Vendor'),
{
name: this.i18n('Running'),
prop: 'status.running',
- flexGrow: 1
+ flexGrow: 1,
+ cellClass: 'text-center',
+ cellTransformation: CellTemplate.checkIcon
},
{
name: this.i18n('Size'),
{{ role }}{{ !isLast ? ", " : "" }}
</span>
</ng-template>
-
-<ng-template #userEnabledTpl
- let-value="value">
- <span>{{ value | booleanText }}</span>
-</ng-template>
export class UserListComponent implements OnInit {
@ViewChild('userRolesTpl', { static: true })
userRolesTpl: TemplateRef<any>;
- @ViewChild('userEnabledTpl', { static: true })
- userEnabledTpl: TemplateRef<any>;
permission: Permission;
tableActions: CdTableAction[];