chore(scenery): make return button redirect to Sceneries tab

This commit is contained in:
2026-04-27 13:56:29 +02:00
parent 21725d4019
commit c4decd1003
3 changed files with 3 additions and 9 deletions
+1 -7
View File
@@ -24,12 +24,6 @@ import { useRoute, useRouter } from 'vue-router';
const route = useRoute();
const router = useRouter();
const prevPath = ref('/');
onMounted(() => {
prevPath.value = (route.meta['prevPath'] as string) ?? '/';
});
defineProps({
station: {
type: Object as PropType<Station>
@@ -46,7 +40,7 @@ defineProps({
});
function onReturnButtonClick() {
router.push(prevPath.value);
router.push('/');
}
</script>
+1 -1
View File
@@ -569,7 +569,7 @@
"no-users": "NO ACTIVE PLAYERS",
"no-spawns": "NO OPEN SPAWNS",
"no-scenery": "Oops! This scenery doesn't exist!",
"return-btn": "BACK TO THE MAIN SITE",
"return-btn": "BACK TO SCENERIES",
"history-btn": "View the dispatcher history",
"info-btn": "Return to the scenery view",
"authors-title": "Scenery author | Scenery authors",
+1 -1
View File
@@ -555,7 +555,7 @@
"no-users": "BRAK AKTYWNYCH GRACZY",
"no-spawns": "BRAK OTWARTYCH SPAWNÓW",
"no-scenery": "Ups! Ta sceneria nie istnieje!",
"return-btn": "POWRÓT DO STRONY GŁÓWNEJ",
"return-btn": "POWRÓT DO SCENERII",
"history-btn": "Przejdź do widoku historii dyżurnych ruchu",
"info-btn": "Wróć do widoku scenerii",
"authors-title": "Autor scenerii | Autorzy scenerii",