mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 18:30:17 +00:00
Modernize PVE.form.GroupSelector,
as example for future Uses. Signed-off-by: René Jochum <r.jochum@proxmox.com>
This commit is contained in:
parent
799ea12f92
commit
7e3fe38af3
@ -1,6 +1,16 @@
|
||||
Ext.define('pve-groups', {
|
||||
extend: 'Ext.data.Model',
|
||||
fields: [ 'groupid', 'comment' ],
|
||||
proxy: {
|
||||
type: 'proxmox',
|
||||
url: "/api2/json/access/groups"
|
||||
},
|
||||
idProperty: 'groupid'
|
||||
});
|
||||
|
||||
Ext.define('PVE.form.GroupSelector', {
|
||||
extend: 'Proxmox.form.ComboGrid',
|
||||
alias: ['widget.pveGroupSelector'],
|
||||
xtype: 'pveGroupSelector',
|
||||
|
||||
allowBlank: false,
|
||||
autoSelect: false,
|
||||
@ -38,21 +48,8 @@ Ext.define('PVE.form.GroupSelector', {
|
||||
store: store
|
||||
});
|
||||
|
||||
me.callParent();
|
||||
me.callParent();
|
||||
|
||||
store.load();
|
||||
}
|
||||
|
||||
}, function() {
|
||||
|
||||
Ext.define('pve-groups', {
|
||||
extend: 'Ext.data.Model',
|
||||
fields: [ 'groupid', 'comment' ],
|
||||
proxy: {
|
||||
type: 'proxmox',
|
||||
url: "/api2/json/access/groups"
|
||||
},
|
||||
idProperty: 'groupid'
|
||||
});
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user