ui: metricserver: fix enable column

we use 'enable' property here with a default of true, so change
the dataIndex and the renderer to reflect that

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2022-11-29 13:01:03 +01:00 committed by Thomas Lamprecht
parent 139acf37a2
commit b0e3095594

View File

@ -65,9 +65,9 @@ Ext.define('PBS.config.MetricServerView', {
},
{
text: gettext('Enabled'),
dataIndex: 'disable',
dataIndex: 'enable',
width: 100,
renderer: Proxmox.Utils.format_neg_boolean,
renderer: v => Proxmox.Utils.format_boolean(v ?? true),
},
{
text: gettext('Target Server'),