web/admin: classify no connected workers as error

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-11 18:48:24 +02:00
parent fe17c3aa34
commit de6f663688
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ export class BackupStatusCard extends AdminStatusCard<TaskStatusEnum> {
}); });
case TaskStatusEnum.Error: case TaskStatusEnum.Error:
return Promise.resolve<AdminStatus>({ return Promise.resolve<AdminStatus>({
icon: "fa fas fa-times-circle pf-m-danger", icon: "fa fa-times-circle pf-m-danger",
message: t`Backup finished with errors.`, message: t`Backup finished with errors.`,
}); });
default: default:

View File

@ -16,7 +16,7 @@ export class WorkersStatusCard extends AdminStatusCard<number> {
getStatus(value: number): Promise<AdminStatus> { getStatus(value: number): Promise<AdminStatus> {
if (value < 1) { if (value < 1) {
return Promise.resolve<AdminStatus>({ return Promise.resolve<AdminStatus>({
icon: "fa fa-exclamation-triangle pf-m-warning", icon: "fa fa-times-circle pf-m-danger",
message: t`No workers connected. Background tasks will not run.`, message: t`No workers connected. Background tasks will not run.`,
}); });
} else { } else {