node: tasks: use helper to format status again
which avoids the all-caps "WARNINGS:" and uses the localized version. The call was thrown out by the big overhaul in 9e059d560c872f14aef0e586010a6b6a91ce2729. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
bb5511d569
commit
bfab8fc134
@ -435,14 +435,7 @@ Ext.define('Proxmox.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);
|
||||
},
|
||||
},
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user