mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-10 16:15:38 +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', {
|
Ext.define('PVE.form.GroupSelector', {
|
||||||
extend: 'Proxmox.form.ComboGrid',
|
extend: 'Proxmox.form.ComboGrid',
|
||||||
alias: ['widget.pveGroupSelector'],
|
xtype: 'pveGroupSelector',
|
||||||
|
|
||||||
allowBlank: false,
|
allowBlank: false,
|
||||||
autoSelect: false,
|
autoSelect: false,
|
||||||
@ -42,17 +52,4 @@ Ext.define('PVE.form.GroupSelector', {
|
|||||||
|
|
||||||
store.load();
|
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