]>
git.proxmox.com Git - pve-manager.git/blob - www/manager/dc/GroupView.js
1 Ext
.define('PVE.dc.GroupView', {
2 extend
: 'Ext.grid.GridPanel',
4 alias
: ['widget.pveGroupView'],
6 initComponent : function() {
9 var store
= new Ext
.data
.Store({
13 url
: "/api2/json/access/groups"
21 var reload = function() {
29 var win
= Ext
.create('PVE.dc.GroupEdit', {
31 win
.on('destroy', reload
);
38 var sm
= me
.getSelectionModel();
39 var rec
= sm
.getSelection()[0];
43 var groupid
= rec
.data
.groupid
;
45 var msg
= 'Are you sure you want to permanently delete the group: ' + groupid
;
46 Ext
.Msg
.confirm('Deletion Confirmation', msg
, function(btn
) {
50 PVE
.Utils
.API2Request({
51 url
: '/access/groups/' + groupid
,
54 callback: function() {
57 failure: function (response
, opts
) {
58 Ext
.Msg
.alert('Error',response
.htmlStatus
);
100 Ext
.define('pve-groups', {
101 extend
: 'Ext.data.Model',
102 fields
: [ 'groupid', 'comment' ],
103 idProperty
: 'groupid'