ui: permission path selector: cbind typeAhead to editable

ExtJS throws an exception if 'typeAhead' is true but 'editable' is
false.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-10-30 16:30:57 +01:00
parent abe1edfc95
commit fdb4416bae

View File

@ -58,10 +58,13 @@ Ext.define('PBS.data.PermissionPathsStore', {
Ext.define('PBS.form.PermissionPathSelector', {
extend: 'Ext.form.field.ComboBox',
xtype: 'pbsPermissionPathSelector',
mixins: ['Proxmox.Mixin.CBind'],
valueField: 'value',
displayField: 'value',
typeAhead: true,
cbind: {
typeAhead: '{editable}',
},
anyMatch: true,
queryMode: 'local',