format task status: rename variable

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2021-04-09 10:44:31 +02:00 committed by Thomas Lamprecht
parent 4294143f92
commit 9865b73e56

View File

@ -738,15 +738,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;
}
},