]>
git.proxmox.com Git - pve-manager.git/blob - www/manager/dc/AuthView.js
1 Ext
.define('PVE.dc.AuthView', {
2 extend
: 'Ext.grid.GridPanel',
4 alias
: ['widget.pveAuthView'],
6 initComponent : function() {
9 var store
= new Ext
.data
.Store({
17 var reload = function() {
25 var win
= Ext
.create('PVE.dc.AuthEdit',{
27 win
.on('destroy', reload
);
34 var sm
= me
.getSelectionModel();
35 var rec
= sm
.getSelection()[0];
40 var realm
= rec
.data
.realm
;
42 var win
= Ext
.create('PVE.dc.AuthEdit',{
45 win
.on('destroy', reload
);
53 var sm
= me
.getSelectionModel();
54 var rec
= sm
.getSelection()[0];
59 var realm
= rec
.data
.realm
;
61 if (realm
!== 'pam' && realm
!= 'pve') {
62 msg
= 'Are you sure you want to permanently the authentication realm: ' + realm
;
63 Ext
.Msg
.confirm('Deletion Confirmation', msg
, function(btn
) {
68 PVE
.Utils
.API2Request({
69 url
: '/access/domains/' + realm
,
72 callback: function() {
75 failure: function (response
, opts
) {
76 Ext
.Msg
.alert('Error',response
.htmlStatus
);
81 msg
= 'You are not permitted to delete the auth method: pam';
82 Ext
.Msg
.alert('Error', msg
);
112 dataIndex
: 'comment',