]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
utils: code style cleanup/reduction
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 24 Oct 2023 11:57:39 +0000 (13:57 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 24 Oct 2023 11:57:43 +0000 (13:57 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/Utils.js

index f2696079efd6e90aa9bca3257e42e844311c6f88..07c160119b406fb8a3f2254a89e8b3fba197c40d 100644 (file)
@@ -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(