web/admin: default to warning state for backup task
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
4b7399f454
commit
5c58532121
|
@ -37,10 +37,9 @@ export class BackupStatusCard extends AdminStatusCard<StatusEnum> {
|
||||||
|
|
||||||
getStatus(value: StatusEnum): Promise<AdminStatus> {
|
getStatus(value: StatusEnum): Promise<AdminStatus> {
|
||||||
switch (value) {
|
switch (value) {
|
||||||
case StatusEnum.Warning:
|
case StatusEnum.Successful:
|
||||||
return Promise.resolve<AdminStatus>({
|
return Promise.resolve<AdminStatus>({
|
||||||
icon: "fa fa-exclamation-triangle pf-m-warning",
|
icon: "fa fa-check-circle pf-m-success",
|
||||||
message: html`${t`Backup finished with warnings/backup not supported.`}`,
|
|
||||||
});
|
});
|
||||||
case StatusEnum.Error:
|
case StatusEnum.Error:
|
||||||
return Promise.resolve<AdminStatus>({
|
return Promise.resolve<AdminStatus>({
|
||||||
|
@ -49,7 +48,8 @@ export class BackupStatusCard extends AdminStatusCard<StatusEnum> {
|
||||||
});
|
});
|
||||||
default:
|
default:
|
||||||
return Promise.resolve<AdminStatus>({
|
return Promise.resolve<AdminStatus>({
|
||||||
icon: "fa fa-check-circle pf-m-success",
|
icon: "fa fa-exclamation-triangle pf-m-warning",
|
||||||
|
message: html`${t`Backup finished with warnings/backup not supported.`}`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue