ui: tasks: use format_task_status

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2021-07-08 11:14:55 +02:00 committed by Thomas Lamprecht
parent 67466ce564
commit 73b77d4787

View File

@ -372,14 +372,7 @@ Ext.define('PBS.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);
},
},
],