mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-03 16:10:42 +00:00
reuse do quarantineAction
and make it possible to show both subscription and action window after one another Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
ac5fcb29ad
commit
2fa0b5059a
@ -135,21 +135,7 @@ Ext.define('PMG.QuarantineView', {
|
||||
},
|
||||
|
||||
execQuarantineAction: function(qa) {
|
||||
Proxmox.Utils.API2Request({
|
||||
url: '/api2/extjs/quarantine/content',
|
||||
params: {
|
||||
id: qa.cselect,
|
||||
action: qa.action
|
||||
},
|
||||
method: 'POST',
|
||||
success: function(response) {
|
||||
Ext.Msg.alert(gettext('Info'), "Action " + qa.action + ' ' +
|
||||
qa.cselect + ' successful');
|
||||
},
|
||||
failure: function(response, opts) {
|
||||
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
|
||||
}
|
||||
});
|
||||
PMG.Utils.doQuarantineAction(qa.action, qa.cselect);
|
||||
},
|
||||
|
||||
control: {
|
||||
|
@ -499,7 +499,9 @@ Ext.define('PMG.Utils', {
|
||||
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
|
||||
},
|
||||
success: function(response, opts) {
|
||||
Ext.Msg.show({
|
||||
var win = Ext.create('Ext.window.MessageBox',{
|
||||
closeAction: 'destroy'
|
||||
}).show({
|
||||
title: gettext('Info'),
|
||||
message: "Action '" + action + ' ' +
|
||||
id + "' successful",
|
||||
|
Loading…
Reference in New Issue
Block a user