]>
git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
projects
/
proxmox-widget-toolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1326f77
)
utils: code style cleanup/reduction
author
Thomas Lamprecht
<t.lamprecht@proxmox.com>
Tue, 24 Oct 2023 11:57:39 +0000
(13:57 +0200)
committer
Thomas 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
patch
|
blob
|
blame
|
history
diff --git
a/src/Utils.js
b/src/Utils.js
index f2696079efd6e90aa9bca3257e42e844311c6f88..07c160119b406fb8a3f2254a89e8b3fba197c40d 100644
(file)
--- a/
src/Utils.js
+++ b/
src/Utils.js
@@
-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(