diff --git a/src/locales/en.json b/src/locales/en.json index 4c7ed64..7666117 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -390,13 +390,13 @@ "timeout": "An error occured while trying to refresh SWDR timetable data!", "driver-journal-link": "DRIVER JOURNAL", "driver-srjp-link": "SRJP", - "driver-return-link": "GO BACK", + "driver-return-link": "RETURN", "driver-not-found-header": "Train not found! :/", "driver-not-found-desc-1": "This train has already been terminated, changed its number or is offline.", "driver-not-found-desc-2": "You can browse timetable history in the", "driver-not-found-journal": "TIMETABLES JOURNAL", "driver-not-found-others": "Player {driver} is online as:", - "driver-not-found-return": "GO BACK TO THE MAIN SITE", + "driver-not-found-return": "RETURN TO THE MAIN SITE", "stock-copy": "COPY THE STOCK", "number-propositions": "PROPOSE NUMBER", "stock-clipboard-success": "Successfully copied the railway stock in a text form to your clipboard!", @@ -519,7 +519,7 @@ "no-users": "NO ACTIVE PLAYERS", "no-spawns": "NO OPEN SPAWNS", "no-scenery": "Oops! This scenery doesn't exist!", - "return-btn": "Return to main site", + "return-btn": "Return", "history-btn": "View the dispatcher history", "info-btn": "Return to the scenery view", "authors-title": "Scenery author | Scenery authors", diff --git a/src/locales/pl.json b/src/locales/pl.json index 9365535..65bce7f 100644 --- a/src/locales/pl.json +++ b/src/locales/pl.json @@ -505,7 +505,7 @@ "no-users": "BRAK AKTYWNYCH GRACZY", "no-spawns": "BRAK OTWARTYCH SPAWNÓW", "no-scenery": "Ups! Ta sceneria nie istnieje!", - "return-btn": "Wróć na stronę główną", + "return-btn": "Powrót", "history-btn": "Przejdź do widoku historii dyżurnych ruchu", "info-btn": "Wróć do widoku scenerii", "authors-title": "Autor scenerii | Autorzy scenerii", diff --git a/src/views/SceneryView.vue b/src/views/SceneryView.vue index 34c7d52..66164a5 100644 --- a/src/views/SceneryView.vue +++ b/src/views/SceneryView.vue @@ -3,8 +3,8 @@
-
@@ -167,6 +167,10 @@ export default defineComponent({ if (!this.stationInfo?.generalInfo?.checkpoints) return; if (this.stationInfo.generalInfo.checkpoints.length == 0) return; this.selectedCheckpoint = this.stationInfo.generalInfo.checkpoints[0]; + }, + + onReturnButtonClick() { + this.$router.back(); } } }); @@ -303,7 +307,7 @@ button.back-btn { } } -@include responsive.smallScreen{ +@include responsive.smallScreen { .scenery-left { max-height: 100vh; }