mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-15 05:41:42 +00:00
UserEdit.js: use dynamic xtype with cbind
This commit is contained in:
parent
2f74c5b4a5
commit
b4ca6e3aa4
@ -23,6 +23,7 @@ Ext.define('PMG.UserEdit', {
|
||||
me.autoLoad = userid ? true : false;
|
||||
|
||||
return {
|
||||
useridXType: userid ? 'displayfield' : 'textfield',
|
||||
isSuperUser: userid === 'root@pam',
|
||||
}
|
||||
},
|
||||
@ -37,7 +38,7 @@ Ext.define('PMG.UserEdit', {
|
||||
allowBlank: false,
|
||||
cbind: {
|
||||
submitValue: '{create}',
|
||||
editable: '{create}'
|
||||
xtype: '{useridXType}',
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user