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:
Thomas Lamprecht 2023-01-11 14:42:33 +01:00
parent 9e12fc0203
commit ba4ab7663d
2 changed files with 2 additions and 6 deletions

View File

@ -290,9 +290,7 @@ Ext.define('Proxmox.node.NetworkView', {
callback: function() {
reload();
},
failure: function(response, opts) {
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
},
failure: response => Ext.Msg.alert(gettext('Error'), response.htmlStatus),
});
},
},

View File

@ -203,9 +203,7 @@ Ext.define('Proxmox.window.TaskViewer', {
url: "/nodes/" + task.node + "/tasks/" + encodeURIComponent(me.upid),
waitMsgTarget: me,
method: 'DELETE',
failure: function(response, opts) {
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
},
failure: response => Ext.Msg.alert(gettext('Error'), response.htmlStatus),
});
};