mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-05 17:45:26 +00:00
window/edit: add autoLoadOptions to control API call
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
e951e37de4
commit
ca204f31df
@ -1,10 +1,11 @@
|
|||||||
// fixme: how can we avoid those lint errors?
|
|
||||||
Ext.define('Proxmox.window.Edit', {
|
Ext.define('Proxmox.window.Edit', {
|
||||||
extend: 'Ext.window.Window',
|
extend: 'Ext.window.Window',
|
||||||
alias: 'widget.proxmoxWindowEdit',
|
alias: 'widget.proxmoxWindowEdit',
|
||||||
|
|
||||||
// autoLoad trigger a load() after component creation
|
// autoLoad trigger a load() after component creation
|
||||||
autoLoad: false,
|
autoLoad: false,
|
||||||
|
// set extra options like params for the load request
|
||||||
|
autoLoadOptions: undefined,
|
||||||
|
|
||||||
resizable: false,
|
resizable: false,
|
||||||
|
|
||||||
@ -383,7 +384,7 @@ Ext.define('Proxmox.window.Edit', {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (me.autoLoad) {
|
if (me.autoLoad) {
|
||||||
me.load();
|
me.load(me.autoLoadOptions);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user