mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-10 05:03:50 +00:00
code style: use arrow fn for some api request failure paths
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
9e12fc0203
commit
ba4ab7663d
@ -290,9 +290,7 @@ Ext.define('Proxmox.node.NetworkView', {
|
|||||||
callback: function() {
|
callback: function() {
|
||||||
reload();
|
reload();
|
||||||
},
|
},
|
||||||
failure: function(response, opts) {
|
failure: response => Ext.Msg.alert(gettext('Error'), response.htmlStatus),
|
||||||
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -203,9 +203,7 @@ Ext.define('Proxmox.window.TaskViewer', {
|
|||||||
url: "/nodes/" + task.node + "/tasks/" + encodeURIComponent(me.upid),
|
url: "/nodes/" + task.node + "/tasks/" + encodeURIComponent(me.upid),
|
||||||
waitMsgTarget: me,
|
waitMsgTarget: me,
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
failure: function(response, opts) {
|
failure: response => Ext.Msg.alert(gettext('Error'), response.htmlStatus),
|
||||||
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user