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() {
|
||||
reload();
|
||||
},
|
||||
failure: function(response, opts) {
|
||||
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
|
||||
},
|
||||
failure: response => Ext.Msg.alert(gettext('Error'), response.htmlStatus),
|
||||
});
|
||||
},
|
||||
},
|
||||
|
@ -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),
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user