diff --git a/src/components/App/AppHeader.vue b/src/components/App/AppHeader.vue index 5e1264f..4af3571 100644 --- a/src/components/App/AppHeader.vue +++ b/src/components/App/AppHeader.vue @@ -100,7 +100,7 @@ export default defineComponent({ }, onlineDispatchersCount() { - return this.store.onlineSceneryList.filter( + return this.store.activeSceneryList.filter( (scenery) => scenery.region == this.store.region.id ).length; }, diff --git a/src/components/Global/RegionDropdown.vue b/src/components/Global/RegionDropdown.vue index e2348a3..d515ce1 100644 --- a/src/components/Global/RegionDropdown.vue +++ b/src/components/Global/RegionDropdown.vue @@ -85,7 +85,7 @@ export default defineComponent({ regionList() { return regionsJSON.map((region) => { - const regionStationCount = this.store.onlineSceneryList.filter( + const regionStationCount = this.store.activeSceneryList.filter( (scenery) => scenery.region == region.id ).length; diff --git a/src/components/Global/StationStatusBadge.vue b/src/components/Global/StationStatusBadge.vue index 7624045..6301d27 100644 --- a/src/components/Global/StationStatusBadge.vue +++ b/src/components/Global/StationStatusBadge.vue @@ -61,6 +61,9 @@ export default defineComponent({ case Status.ActiveDispatcher.UNKNOWN: return 'unknown'; + case Status.ActiveDispatcher.FREE: + return 'free'; + default: if (this.dispatcherTimestamp != null && this.dispatcherStatus >= Date.now() + 25500000) return 'no-limit'; diff --git a/src/components/SceneryView/SceneryDispatchersHistory.vue b/src/components/SceneryView/SceneryDispatchersHistory.vue index 912a692..d9d4a04 100644 --- a/src/components/SceneryView/SceneryDispatchersHistory.vue +++ b/src/components/SceneryView/SceneryDispatchersHistory.vue @@ -76,7 +76,7 @@ import Station from '../../scripts/interfaces/Station'; import Loading from '../Global/Loading.vue'; import styleMixin from '../../mixins/styleMixin'; import listObserverMixin from '../../mixins/listObserverMixin'; -import { OnlineScenery } from '../../store/typings'; +import { ActiveScenery } from '../../store/typings'; import { API } from '../../typings/api'; import { Status } from '../../typings/common'; import http from '../../http'; @@ -90,7 +90,7 @@ export default defineComponent({ type: Object as PropType }, onlineScenery: { - type: Object as PropType + type: Object as PropType } }, diff --git a/src/components/SceneryView/SceneryHeader.vue b/src/components/SceneryView/SceneryHeader.vue index d3e86ba..fa1e07b 100644 --- a/src/components/SceneryView/SceneryHeader.vue +++ b/src/components/SceneryView/SceneryHeader.vue @@ -15,7 +15,7 @@