From e6f0a16387c42726b20250fef7fdf9293f5bfaa0 Mon Sep 17 00:00:00 2001 From: Spythere Date: Tue, 29 Jun 2021 19:12:22 +0200 Subject: [PATCH] Poprawki tabeli --- src/components/StationsView/StationTable.vue | 7 +++---- src/store/index.ts | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/StationsView/StationTable.vue b/src/components/StationsView/StationTable.vue index 59cbb02..d4ae5b5 100644 --- a/src/components/StationsView/StationTable.vue +++ b/src/components/StationsView/StationTable.vue @@ -280,10 +280,9 @@ export default defineComponent({ () => store.getters[GETTERS.dataStatus] ); - const isDataLoaded = () => - computed(() => { - dataConnectionStatus.value == DataStatus.Loaded; - }); + const isDataLoaded = computed(() => { + return dataConnectionStatus.value == DataStatus.Loaded; + }); return { isDataLoaded, diff --git a/src/store/index.ts b/src/store/index.ts index 352bc55..798f978 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -342,7 +342,7 @@ export const store = createStore({ }); state.stationCount = state.stationList.filter(station => station.online).length; - state.dataConnectionStatus = DataStatus.Loaded; + state.dataConnectionStatus = DataStatus.Loaded; }, UPDATE_TRAINS(state, updatedTrainList: any[]) {