mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 04:51:09 +00:00
ui: lxc resources: refactor add menu handler
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
809f6b6ef5
commit
163d9f17cb
@ -324,13 +324,15 @@ Ext.define('PVE.lxc.RessourceView', {
|
|||||||
iconCls: 'fa fa-fw fa-hdd-o black',
|
iconCls: 'fa fa-fw fa-hdd-o black',
|
||||||
disabled: !caps.vms['VM.Config.Disk'],
|
disabled: !caps.vms['VM.Config.Disk'],
|
||||||
handler: function() {
|
handler: function() {
|
||||||
var win = Ext.create('PVE.lxc.MountPointEdit', {
|
Ext.create('PVE.lxc.MountPointEdit', {
|
||||||
url: '/api2/extjs/' + baseurl,
|
autoShow: true,
|
||||||
|
url: `/api2/extjs/${baseurl}`,
|
||||||
unprivileged: me.getObjectValue('unprivileged'),
|
unprivileged: me.getObjectValue('unprivileged'),
|
||||||
pveSelNode: me.pveSelNode,
|
pveSelNode: me.pveSelNode,
|
||||||
|
listeners: {
|
||||||
|
destroy: () => me.reload(),
|
||||||
|
},
|
||||||
});
|
});
|
||||||
win.on('destroy', me.reload, me);
|
|
||||||
win.show();
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user