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:
|
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:
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Reference in New Issue