From 4599e7959cfa0a4b1c04f63af4885f333b30dbcc Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 21 May 2021 18:18:20 +0200 Subject: [PATCH] ui: rework node-config to static Signed-off-by: Thomas Lamprecht --- www/config/NodeOptionView.js | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/www/config/NodeOptionView.js b/www/config/NodeOptionView.js index beeea35f..55271a91 100644 --- a/www/config/NodeOptionView.js +++ b/www/config/NodeOptionView.js @@ -12,7 +12,7 @@ Ext.define('PBS.NodeOptionView', { cwidth1: 200, listeners: { - itemdblclick: function() { this.run_editor() }, + itemdblclick: function() { this.run_editor(); }, }, tbar: [ @@ -20,19 +20,25 @@ Ext.define('PBS.NodeOptionView', { text: gettext('Edit'), xtype: 'proxmoxButton', disabled: true, - handler: function() { this.up('grid').run_editor(); }, - } + handler: btn => btn.up('grid').run_editor(), + }, + ], + + gridRows: [ + { + xtype: 'text', + name: 'http-proxy', + text: gettext('HTTP proxy'), + defaultValue: Proxmox.Utils.noneText, + vtype: 'HttpProxy', + deleteEmpty: true, + onlineHelp: 'node_options_http_proxy', + }, ], initComponent: function() { let me = this; - me.add_text_row('http-proxy', gettext('HTTP proxy'), { - defaultValue: Proxmox.Utils.noneText, - vtype: 'HttpProxy', - deleteEmpty: true, - }); - me.callParent(); me.on('activate', me.rstore.startUpdate);