mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Dodano możliwość zmieniania posterunków w przeglądzie RJ
This commit is contained in:
@@ -202,7 +202,14 @@ export default class StationTable extends styleMixin {
|
||||
@Prop() readonly changeSorter!: () => void;
|
||||
|
||||
setScenery(sceneryHash: string) {
|
||||
this.$router.push({ name: "SceneryView", query: { hash: sceneryHash } })
|
||||
if (
|
||||
this.stations.findIndex(
|
||||
(station) => station.stationHash === sceneryHash && station.online
|
||||
) == -1
|
||||
)
|
||||
return;
|
||||
|
||||
this.$router.push({ name: "SceneryView", query: { hash: sceneryHash } });
|
||||
}
|
||||
|
||||
icons: { ascSVG; descSVG } = { ascSVG, descSVG };
|
||||
|
||||
Reference in New Issue
Block a user