ui: rework node-config to static

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-05-21 18:18:20 +02:00
parent 82ed13c7d7
commit 4599e7959c

View File

@ -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);