mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-15 08:07:49 +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;
|
me.autoLoad = userid ? true : false;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
useridXType: userid ? 'displayfield' : 'textfield',
|
||||||
isSuperUser: userid === 'root@pam',
|
isSuperUser: userid === 'root@pam',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -37,7 +38,7 @@ Ext.define('PMG.UserEdit', {
|
|||||||
allowBlank: false,
|
allowBlank: false,
|
||||||
cbind: {
|
cbind: {
|
||||||
submitValue: '{create}',
|
submitValue: '{create}',
|
||||||
editable: '{create}'
|
xtype: '{useridXType}',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user