]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/form/PrivilegesSelector.js
1 Ext
.define('PVE.form.PrivilegesSelector', {
2 extend
: 'Proxmox.form.KVComboBox',
3 xtype
: 'pvePrivilegesSelector',
7 initComponent: function() {
10 // So me.store is available.
13 Proxmox
.Utils
.API2Request({
14 url
: '/access/roles/Administrator',
16 success: function(response
, options
) {
18 for (key
in response
.result
.data
) {
19 data
.push([key
, key
]);
22 me
.store
.setData(data
);
30 failure: function (response
, opts
) {
31 Ext
.Msg
.alert(gettext('Error'), response
.htmlStatus
);