mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Poprawiono szlaki; poprawiono UX dla widoku scenerii
This commit is contained in:
@@ -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(' ', '_') },
|
||||
|
||||
Reference in New Issue
Block a user