ui: rework node-config to static
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
82ed13c7d7
commit
4599e7959c
@ -12,7 +12,7 @@ Ext.define('PBS.NodeOptionView', {
|
|||||||
cwidth1: 200,
|
cwidth1: 200,
|
||||||
|
|
||||||
listeners: {
|
listeners: {
|
||||||
itemdblclick: function() { this.run_editor() },
|
itemdblclick: function() { this.run_editor(); },
|
||||||
},
|
},
|
||||||
|
|
||||||
tbar: [
|
tbar: [
|
||||||
@ -20,19 +20,25 @@ Ext.define('PBS.NodeOptionView', {
|
|||||||
text: gettext('Edit'),
|
text: gettext('Edit'),
|
||||||
xtype: 'proxmoxButton',
|
xtype: 'proxmoxButton',
|
||||||
disabled: true,
|
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() {
|
initComponent: function() {
|
||||||
let me = this;
|
let me = this;
|
||||||
|
|
||||||
me.add_text_row('http-proxy', gettext('HTTP proxy'), {
|
|
||||||
defaultValue: Proxmox.Utils.noneText,
|
|
||||||
vtype: 'HttpProxy',
|
|
||||||
deleteEmpty: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
me.callParent();
|
me.callParent();
|
||||||
|
|
||||||
me.on('activate', me.rstore.startUpdate);
|
me.on('activate', me.rstore.startUpdate);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user