mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 11:46:44 +00:00
ComboGrid: improve setting 'editable' default value
This allows child classes to use another default, the initialConfig didn't allowed that. This is also the ExtJS like way to set defaults. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
eae6918493
commit
83fb529c2f
@ -30,6 +30,8 @@ Ext.define('PVE.form.ComboGrid', {
|
|||||||
// needed to trigger onKeyUp etc.
|
// needed to trigger onKeyUp etc.
|
||||||
enableKeyEvents: true,
|
enableKeyEvents: true,
|
||||||
|
|
||||||
|
editable: false,
|
||||||
|
|
||||||
// override ExtJS method
|
// override ExtJS method
|
||||||
// if the field has multiSelect enabled, the store is not loaded, and
|
// if the field has multiSelect enabled, the store is not loaded, and
|
||||||
// the displayfield == valuefield, it saves the rawvalue as an array
|
// the displayfield == valuefield, it saves the rawvalue as an array
|
||||||
@ -254,10 +256,6 @@ Ext.define('PVE.form.ComboGrid', {
|
|||||||
initComponent: function() {
|
initComponent: function() {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
if (me.initialConfig.editable === undefined) {
|
|
||||||
me.editable = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Ext.apply(me, {
|
Ext.apply(me, {
|
||||||
queryMode: 'local',
|
queryMode: 'local',
|
||||||
matchFieldWidth: false
|
matchFieldWidth: false
|
||||||
|
Loading…
Reference in New Issue
Block a user