[pbs-devel] [PATCH proxmox-backup] ui: metricserver: fix enable column

Dominik Csapak d.csapak at proxmox.com
Tue Nov 29 13:01:03 CET 2022


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 at proxmox.com>
---
 www/config/MetricServerView.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/config/MetricServerView.js b/www/config/MetricServerView.js
index 5aaf81b6..c7c786fd 100644
--- a/www/config/MetricServerView.js
+++ b/www/config/MetricServerView.js
@@ -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'),
-- 
2.30.2






More information about the pbs-devel mailing list