mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b01d3e894b | |||
| 13dc6a0e32 |
@@ -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';
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ export namespace Status {
|
||||
export enum ActiveDispatcher {
|
||||
INVALID = -2,
|
||||
UNKNOWN = -1,
|
||||
NO_LIMIT = 0,
|
||||
AFK = 1,
|
||||
ENDING = 2,
|
||||
NO_SPACE = 3,
|
||||
|
||||
Reference in New Issue
Block a user