mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-03 10:22:55 +00:00
format task status: improve replace() usage
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
9865b73e56
commit
9b4b243aa1
@ -743,8 +743,7 @@ utilities: {
|
|||||||
switch (parsed) {
|
switch (parsed) {
|
||||||
case 'unknown': return Proxmox.Utils.unknownText;
|
case 'unknown': return Proxmox.Utils.unknownText;
|
||||||
case 'error': return Proxmox.Utils.errorText + ': ' + status;
|
case 'error': return Proxmox.Utils.errorText + ': ' + status;
|
||||||
case 'warning': return Proxmox.Utils.warningsText +
|
case 'warning': return status.replace('WARNINGS', Proxmox.Utils.warningsText);
|
||||||
status.replace('WARNINGS', '');
|
|
||||||
case 'ok': // fall-through
|
case 'ok': // fall-through
|
||||||
default: return status;
|
default: return status;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user