From bfab8fc1346c360764d06571cc55188d5fe4cab0 Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Thu, 8 Jul 2021 11:14:54 +0200 Subject: [PATCH] node: tasks: use helper to format status again 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 --- src/node/Tasks.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/node/Tasks.js b/src/node/Tasks.js index aa074b4..c852615 100644 --- a/src/node/Tasks.js +++ b/src/node/Tasks.js @@ -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); }, }, ],