From fdb4416bae2dea3349d5aff51b9078bf708f2c98 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 30 Oct 2020 16:30:57 +0100 Subject: [PATCH] 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 --- www/form/PermissionPathSelector.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/form/PermissionPathSelector.js b/www/form/PermissionPathSelector.js index 0138fedf..3e84d0db 100644 --- a/www/form/PermissionPathSelector.js +++ b/www/form/PermissionPathSelector.js @@ -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',