diff --git a/src/locales/en.json b/src/locales/en.json index 71df3af..fa92d66 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -404,7 +404,7 @@ "timeout": "An error occured while trying to refresh SWDR timetable data!", "driver-journal-link": "DRIVER JOURNAL", - "driver-return-link": "MAIN SITE", + "driver-return-link": "GO BACK", "driver-not-found-header": "Train not found! :/", "driver-not-found-desc-1": "This train has already been terminated or it's offline.", diff --git a/src/locales/pl.json b/src/locales/pl.json index 3241ef7..86815a9 100644 --- a/src/locales/pl.json +++ b/src/locales/pl.json @@ -390,7 +390,7 @@ "timeout": "Wystąpił problem z aktualizacją rozkładów jazdy z SWDR", "driver-journal-link": "DZIENNIK MASZYNISTY", - "driver-return-link": "STRONA GŁÓWNA", + "driver-return-link": "POWRÓT", "driver-not-found-header": "Nie znaleziono pociągu! :/", "driver-not-found-desc-1": "Ten pociąg prawdopodobnie zakończył już swój bieg lub jest offline.", diff --git a/src/router/index.ts b/src/router/index.ts index 71acc24..53ec168 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -7,7 +7,7 @@ const routes: Array = [ component: () => import('../views/StationsView.vue'), props: (route) => ({ region: route.query.region - }), + }) }, { path: '/trains', @@ -56,7 +56,7 @@ const routes: Array = [ component: () => import('../views/JournalDispatchers.vue'), props: (route) => ({ region: route.query.region - }), + }) }, { path: '/:catchAll(.*)', @@ -79,4 +79,10 @@ const router = createRouter({ routes }); +router.beforeEach((to, from, next) => { + next((vm) => { + (vm as any)['xd'] = 'xd'; + }); +}); + export default router; diff --git a/src/views/DriverView.vue b/src/views/DriverView.vue index d50342a..2ddf9a9 100644 --- a/src/views/DriverView.vue +++ b/src/views/DriverView.vue @@ -3,18 +3,14 @@
- - train icon - {{ $t('trains.driver-return-link') }} - - train icon {{ $t('trains.driver-journal-link') }} + train icon
@@ -43,7 +39,7 @@