mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
chore(scenery): make return button redirect to Sceneries tab
This commit is contained in:
@@ -24,12 +24,6 @@ import { useRoute, useRouter } from 'vue-router';
|
|||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
const prevPath = ref('/');
|
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
prevPath.value = (route.meta['prevPath'] as string) ?? '/';
|
|
||||||
});
|
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
station: {
|
station: {
|
||||||
type: Object as PropType<Station>
|
type: Object as PropType<Station>
|
||||||
@@ -46,7 +40,7 @@ defineProps({
|
|||||||
});
|
});
|
||||||
|
|
||||||
function onReturnButtonClick() {
|
function onReturnButtonClick() {
|
||||||
router.push(prevPath.value);
|
router.push('/');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -569,7 +569,7 @@
|
|||||||
"no-users": "NO ACTIVE PLAYERS",
|
"no-users": "NO ACTIVE PLAYERS",
|
||||||
"no-spawns": "NO OPEN SPAWNS",
|
"no-spawns": "NO OPEN SPAWNS",
|
||||||
"no-scenery": "Oops! This scenery doesn't exist!",
|
"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",
|
"history-btn": "View the dispatcher history",
|
||||||
"info-btn": "Return to the scenery view",
|
"info-btn": "Return to the scenery view",
|
||||||
"authors-title": "Scenery author | Scenery authors",
|
"authors-title": "Scenery author | Scenery authors",
|
||||||
|
|||||||
+1
-1
@@ -555,7 +555,7 @@
|
|||||||
"no-users": "BRAK AKTYWNYCH GRACZY",
|
"no-users": "BRAK AKTYWNYCH GRACZY",
|
||||||
"no-spawns": "BRAK OTWARTYCH SPAWNÓW",
|
"no-spawns": "BRAK OTWARTYCH SPAWNÓW",
|
||||||
"no-scenery": "Ups! Ta sceneria nie istnieje!",
|
"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",
|
"history-btn": "Przejdź do widoku historii dyżurnych ruchu",
|
||||||
"info-btn": "Wróć do widoku scenerii",
|
"info-btn": "Wróć do widoku scenerii",
|
||||||
"authors-title": "Autor scenerii | Autorzy scenerii",
|
"authors-title": "Autor scenerii | Autorzy scenerii",
|
||||||
|
|||||||
Reference in New Issue
Block a user