mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Hotfix: zbyt szybkie odświeżanie scenerii
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="timetable-item loading" v-if="timetableDataStatus == 0">
|
<span class="timetable-item loading" v-if="timetableDataStatus == 0 && computedScheduledTrains.length == 0">
|
||||||
{{ $t("app.loading") }}
|
{{ $t("app.loading") }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -96,7 +96,7 @@ export const store = createStore<State>({
|
|||||||
commit(MUTATIONS.SET_SCENERY_DATA_STATUS, DataStatus.Loaded);
|
commit(MUTATIONS.SET_SCENERY_DATA_STATUS, DataStatus.Loaded);
|
||||||
dispatch(ACTIONS.fetchOnlineData);
|
dispatch(ACTIONS.fetchOnlineData);
|
||||||
|
|
||||||
setInterval(() => dispatch(ACTIONS.fetchOnlineData), Math.floor(Math.random() * 5000) + 2500);
|
setInterval(() => dispatch(ACTIONS.fetchOnlineData), Math.floor(Math.random() * 5000) + 25000);
|
||||||
},
|
},
|
||||||
|
|
||||||
async fetchOnlineData({ commit, dispatch }) {
|
async fetchOnlineData({ commit, dispatch }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user