]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: permission path selector: cbind typeAhead to editable
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 30 Oct 2020 15:30:57 +0000 (16:30 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 30 Oct 2020 15:31:53 +0000 (16:31 +0100)
ExtJS throws an exception if 'typeAhead' is true but 'editable' is
false.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/form/PermissionPathSelector.js

index 0138fedf5bd2331a6233ea25fad01ecbd8eddf0e..3e84d0db14412ddb81966ebe9f23a1eeb4bae266 100644 (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',