ext6migrate: fix User and Role selector

we have to move the static fields to the class
configuration, otherwise the combobox does not work

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2016-03-08 11:03:54 +01:00 committed by Dietmar Maurer
parent 871df3163a
commit b4ea8af6cc
2 changed files with 8 additions and 9 deletions

View File

@ -2,6 +2,10 @@ Ext.define('PVE.form.RoleSelector', {
extend: 'PVE.form.ComboGrid',
alias: ['widget.pveRoleSelector'],
allowBlank: false,
autoSelect: false,
valueField: 'roleid',
displayField: 'roleid',
initComponent: function() {
var me = this;
@ -11,10 +15,6 @@ Ext.define('PVE.form.RoleSelector', {
Ext.apply(me, {
store: store,
allowBlank: false,
autoSelect: false,
valueField: 'roleid',
displayField: 'roleid',
listConfig: {
columns: [
{

View File

@ -1,7 +1,10 @@
Ext.define('PVE.form.UserSelector', {
extend: 'PVE.form.ComboGrid',
alias: ['widget.pveUserSelector'],
allowBlank: false,
autoSelect: false,
valueField: 'userid',
displayField: 'userid',
initComponent: function() {
var me = this;
@ -18,10 +21,6 @@ Ext.define('PVE.form.UserSelector', {
Ext.apply(me, {
store: store,
allowBlank: false,
autoSelect: false,
valueField: 'userid',
displayField: 'userid',
listConfig: {
columns: [
{