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() { callback: function() {
reload(); reload();
}, },
failure: function(response, opts) { failure: response => Ext.Msg.alert(gettext('Error'), response.htmlStatus),
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), 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);
},
}); });
}; };