Delete subscription check
This commit is contained in:
parent
ce43c6846d
commit
ddfe1b8fc0
18
src/Utils.js
18
src/Utils.js
@ -508,23 +508,7 @@ utilities: {
|
||||
},
|
||||
success: function(response, opts) {
|
||||
let res = response.result;
|
||||
if (res === null || res === undefined || !res || res
|
||||
.data.status.toLowerCase() !== 'active') {
|
||||
Ext.Msg.show({
|
||||
title: gettext('No valid subscription'),
|
||||
icon: Ext.Msg.WARNING,
|
||||
message: Proxmox.Utils.getNoSubKeyHtml(res.data.url),
|
||||
buttons: Ext.Msg.OK,
|
||||
callback: function(btn) {
|
||||
if (btn !== 'ok') {
|
||||
return;
|
||||
}
|
||||
orig_cmd();
|
||||
},
|
||||
});
|
||||
} else {
|
||||
orig_cmd();
|
||||
}
|
||||
orig_cmd();
|
||||
},
|
||||
},
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user