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> { 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.`}`,
}); });
} }
} }