mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-07-12 20:21:58 +00:00
utils: code style cleanup/reduction
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
1326f771b9
commit
5a3ac9b110
@ -527,12 +527,7 @@ utilities: {
|
||||
// Proxmox.Async.api2({
|
||||
// ...
|
||||
// }).catch(Proxmox.Utils.alertResponseFailure);
|
||||
alertResponseFailure: (response) => {
|
||||
Ext.Msg.alert(
|
||||
gettext('Error'),
|
||||
response.htmlStatus || response.result.message,
|
||||
);
|
||||
},
|
||||
alertResponseFailure: res => Ext.Msg.alert(gettext('Error') res.htmlStatus || res.result.message),
|
||||
|
||||
checked_command: function(orig_cmd) {
|
||||
Proxmox.Utils.API2Request(
|
||||
|
Loading…
Reference in New Issue
Block a user