displayedit: allow passing an explicit displayConfig

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-07-24 13:59:47 +02:00
parent 41cf4ae184
commit 26f17eb15a

View File

@ -63,6 +63,11 @@ Ext.define('Proxmox.form.field.DisplayEdit', {
});
Ext.applyIf(editConfig, displayConfig);
if (me.initialConfig && me.initialConfig.displayConfig) {
Ext.applyIf(displayConfig, me.initialConfig.displayConfig);
delete displayConfig.displayConfig;
}
Ext.applyIf(displayConfig.bind, {
hidden: '{editable}',
disabled: '{editable}',