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,