Merge pull request #63 from Spythere/development

hotfix: statusy dr
This commit is contained in:
Spythere
2023-11-15 21:07:28 +01:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -31,12 +31,15 @@ export default defineComponent({
computed: { computed: {
statusName() { statusName() {
if (!this.dispatcherStatus) return 'free'; if (this.dispatcherStatus === undefined) return 'free';
switch (this.dispatcherStatus) { switch (this.dispatcherStatus) {
case Status.ActiveDispatcher.AFK: case Status.ActiveDispatcher.AFK:
return 'afk'; return 'afk';
case Status.ActiveDispatcher.NO_LIMIT:
return 'no-limit';
case Status.ActiveDispatcher.ENDING: case Status.ActiveDispatcher.ENDING:
return 'ending'; return 'ending';
+1
View File
@@ -2,6 +2,7 @@ export namespace Status {
export enum ActiveDispatcher { export enum ActiveDispatcher {
INVALID = -2, INVALID = -2,
UNKNOWN = -1, UNKNOWN = -1,
NO_LIMIT = 0,
AFK = 1, AFK = 1,
ENDING = 2, ENDING = 2,
NO_SPACE = 3, NO_SPACE = 3,