mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-17 17:46:01 +00:00
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
9e059d560c
.
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 '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
let parsed = Proxmox.Utils.parse_task_status(value);
|
return Proxmox.Utils.format_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;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user