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) {
|
||||
case 'unknown': return Proxmox.Utils.unknownText;
|
||||
case 'error': return Proxmox.Utils.errorText + ': ' + status;
|
||||
case 'warning': return Proxmox.Utils.warningsText +
|
||||
status.replace('WARNINGS', '');
|
||||
case 'warning': return status.replace('WARNINGS', Proxmox.Utils.warningsText);
|
||||
case 'ok': // fall-through
|
||||
default: return status;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user