From 9b4b243aa1a51e103e11c283f28f1d225434ca86 Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Fri, 9 Apr 2021 10:44:32 +0200 Subject: [PATCH] format task status: improve replace() usage Signed-off-by: Fabian Ebner --- src/Utils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Utils.js b/src/Utils.js index 2955778..8538794 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -743,8 +743,7 @@ utilities: { switch (parsed) { case 'unknown': return Proxmox.Utils.unknownText; case 'error': return Proxmox.Utils.errorText + ': ' + status; - case 'warning': return Proxmox.Utils.warningsText + - status.replace('WARNINGS', ''); + case 'warning': return status.replace('WARNINGS', Proxmox.Utils.warningsText); case 'ok': // fall-through default: return status; } -- 2.39.2