mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-10-10 16:40:26 +00:00
format task status: rename variable
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
4294143f92
commit
9865b73e56
10
src/Utils.js
10
src/Utils.js
@ -738,15 +738,15 @@ utilities: {
|
|||||||
return 'error';
|
return 'error';
|
||||||
},
|
},
|
||||||
|
|
||||||
format_task_status: function(value) {
|
format_task_status: function(status) {
|
||||||
let parsed = Proxmox.Utils.parse_task_status(value);
|
let parsed = Proxmox.Utils.parse_task_status(status);
|
||||||
switch (parsed) {
|
switch (parsed) {
|
||||||
case 'unknown': return Proxmox.Utils.unknownText;
|
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 +
|
case 'warning': return Proxmox.Utils.warningsText +
|
||||||
value.replace('WARNINGS', '');
|
status.replace('WARNINGS', '');
|
||||||
case 'ok': // fall-through
|
case 'ok': // fall-through
|
||||||
default: return value;
|
default: return status;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user