]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
node: tasks: use helper to format status again
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 8 Jul 2021 09:14:54 +0000 (11:14 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 8 Jul 2021 09:50:27 +0000 (11:50 +0200)
which avoids the all-caps "WARNINGS:" and uses the localized version.
The call was thrown out by the big overhaul in
9e059d560c872f14aef0e586010a6b6a91ce2729.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
src/node/Tasks.js

index aa074b4eb3bfffa1712a3a27f774c63e012ec9b6..c852615aa820212927f17579aba2204fb693e0d7 100644 (file)
@@ -435,14 +435,7 @@ Ext.define('Proxmox.node.Tasks', {
                    return '';
                }
 
-               let parsed = Proxmox.Utils.parse_task_status(value);
-               switch (parsed) {
-                   case 'unknown': return Proxmox.Utils.unknownText;
-                   case 'error': return Proxmox.Utils.errorText + ': ' + value;
-                   case 'ok': // fall-through
-                   case 'warning': // fall-through
-                   default: return value;
-               }
+               return Proxmox.Utils.format_task_status(value);
            },
        },
     ],