From 13dc6a0e3262c27fc8b1442e0248b9685fef166e Mon Sep 17 00:00:00 2001 From: Spythere Date: Wed, 15 Nov 2023 21:06:16 +0100 Subject: [PATCH] hotfix: statusy dr --- src/components/Global/StationStatusBadge.vue | 5 ++++- src/typings/common.ts | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Global/StationStatusBadge.vue b/src/components/Global/StationStatusBadge.vue index 70a8a5b..ea4cc55 100644 --- a/src/components/Global/StationStatusBadge.vue +++ b/src/components/Global/StationStatusBadge.vue @@ -31,12 +31,15 @@ export default defineComponent({ computed: { statusName() { - if (!this.dispatcherStatus) return 'free'; + if (this.dispatcherStatus === undefined) return 'free'; switch (this.dispatcherStatus) { case Status.ActiveDispatcher.AFK: return 'afk'; + case Status.ActiveDispatcher.NO_LIMIT: + return 'no-limit'; + case Status.ActiveDispatcher.ENDING: return 'ending'; diff --git a/src/typings/common.ts b/src/typings/common.ts index fe5e181..26008ef 100644 --- a/src/typings/common.ts +++ b/src/typings/common.ts @@ -2,6 +2,7 @@ export namespace Status { export enum ActiveDispatcher { INVALID = -2, UNKNOWN = -1, + NO_LIMIT = 0, AFK = 1, ENDING = 2, NO_SPACE = 3,