From 7066977f23e5f2c211ecc66fa1add424c2241f0b Mon Sep 17 00:00:00 2001 From: Spythere Date: Wed, 9 Feb 2022 22:27:07 +0100 Subject: [PATCH] =?UTF-8?q?Poprawki=20status=C3=B3w=20danych?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/App/StatusIndicator.vue | 7 +++++++ src/components/TrainsView/TrainTable.vue | 9 ++++++--- src/constants/storeConstants.ts | 2 +- src/locales/en.json | 3 ++- src/locales/pl.json | 3 ++- src/scripts/utils/storeUtils.ts | 3 ++- src/store/index.ts | 8 ++++---- src/styles/scenery_status.scss | 6 ++++++ src/views/TrainsView.vue | 2 -- 9 files changed, 30 insertions(+), 13 deletions(-) diff --git a/src/components/App/StatusIndicator.vue b/src/components/App/StatusIndicator.vue index 6befac8..9151c65 100644 --- a/src/components/App/StatusIndicator.vue +++ b/src/components/App/StatusIndicator.vue @@ -242,6 +242,13 @@ export default defineComponent({ return; } + if (timetableDataStatus == DataStatus.Loading) { + this.setSignalStatus(timetableDataStatus); + this.indicator.status = timetableDataStatus; + this.indicator.message = 'Ładowanie rozkładów jazdy...'; + return; + } + this.setSignalStatus(DataStatus.Loaded); this.indicator.status = DataStatus.Loaded; diff --git a/src/components/TrainsView/TrainTable.vue b/src/components/TrainsView/TrainTable.vue index f302dd2..af5a61e 100644 --- a/src/components/TrainsView/TrainTable.vue +++ b/src/components/TrainsView/TrainTable.vue @@ -1,16 +1,16 @@