Poprawiono szlaki; poprawiono UX dla widoku scenerii

This commit is contained in:
2022-03-05 20:25:37 +01:00
parent c9d0a674e4
commit ac76454173
8 changed files with 117 additions and 92 deletions
@@ -35,6 +35,7 @@
<tbody>
<tr
class="station"
:class="{ 'last-selected': lastSelectedStationName == station.name }"
v-for="(station, i) in stations"
:key="i + station.name"
@click.left="setScenery(station.name)"
@@ -267,6 +268,8 @@ export default defineComponent({
headIds: ['station', 'min-lvl', 'status', 'dispatcher', 'dispatcher-lvl', 'routes', 'general'],
headIconsIds: ['user', 'spawn', 'timetable'],
lastSelectedStationName: ""
}),
setup() {
@@ -289,6 +292,8 @@ export default defineComponent({
if (!station) return;
this.lastSelectedStationName = station.name;
this.$router.push({
name: 'SceneryView',
query: { station: station.name.replaceAll(' ', '_') },