web/admin: classify no connected workers as error
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
fe17c3aa34
commit
de6f663688
|
@ -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:
|
||||
|
|
|
@ -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 {
|
||||
|
|
Reference in New Issue