web/admin: default to warning state for backup task

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-10-14 12:31:01 +02:00
parent 4b7399f454
commit 5c58532121
1 changed files with 4 additions and 4 deletions

View File

@ -37,10 +37,9 @@ export class BackupStatusCard extends AdminStatusCard<StatusEnum> {
getStatus(value: StatusEnum): Promise<AdminStatus> {
switch (value) {
case StatusEnum.Warning:
case StatusEnum.Successful:
return Promise.resolve<AdminStatus>({
icon: "fa fa-exclamation-triangle pf-m-warning",
message: html`${t`Backup finished with warnings/backup not supported.`}`,
icon: "fa fa-check-circle pf-m-success",
});
case StatusEnum.Error:
return Promise.resolve<AdminStatus>({
@ -49,7 +48,8 @@ export class BackupStatusCard extends AdminStatusCard<StatusEnum> {
});
default:
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.`}`,
});
}
}