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 571772854b
commit 858fcb8554
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ export class BackupStatusCard extends AdminStatusCard<TaskStatusEnum> {
});
case TaskStatusEnum.Error:
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.`,
});
default:

View File

@ -16,7 +16,7 @@ export class WorkersStatusCard extends AdminStatusCard<number> {
getStatus(value: number): Promise<AdminStatus> {
if (value < 1) {
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.`,
});
} else {