[pbs-devel] [PATCH v2 widget-toolkit 2/7] format task status: rename variable

Fabian Ebner f.ebner at proxmox.com
Fri Apr 9 10:44:31 CEST 2021


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---

New in v2.

 src/Utils.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/Utils.js b/src/Utils.js
index 21bdbe3..155ef49 100644
--- a/src/Utils.js
+++ b/src/Utils.js
@@ -736,15 +736,15 @@ utilities: {
 	return 'error';
     },
 
-    format_task_status: function(value) {
-	let parsed = Proxmox.Utils.parse_task_status(value);
+    format_task_status: function(status) {
+	let parsed = Proxmox.Utils.parse_task_status(status);
 	switch (parsed) {
 	    case 'unknown': return Proxmox.Utils.unknownText;
-	    case 'error': return Proxmox.Utils.errorText + ': ' + value;
+	    case 'error': return Proxmox.Utils.errorText + ': ' + status;
 	    case 'warning': return Proxmox.Utils.warningsText +
-		value.replace('WARNINGS', '');
+		status.replace('WARNINGS', '');
 	    case 'ok': // fall-through
-	    default: return value;
+	    default: return status;
 	}
     },
 
-- 
2.20.1






More information about the pbs-devel mailing list