mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
refactor(scenery): moved thumbnails toggler to header
This commit is contained in:
@@ -4,12 +4,15 @@
|
||||
:station="station"
|
||||
:onlineScenery="onlineScenery"
|
||||
:chosenCheckpoint="chosenCheckpoint"
|
||||
:showStockThumbnails="showStockThumbnails"
|
||||
@toggleThumbnails="toggleThumbnails"
|
||||
/>
|
||||
|
||||
<SceneryTimetableList
|
||||
:station="station"
|
||||
:onlineScenery="onlineScenery"
|
||||
:chosenCheckpoint="chosenCheckpoint"
|
||||
:showStockThumbnails="showStockThumbnails"
|
||||
/>
|
||||
</section>
|
||||
</template>
|
||||
@@ -45,7 +48,8 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
data: () => ({
|
||||
listOpen: false
|
||||
listOpen: false,
|
||||
showStockThumbnails: false
|
||||
}),
|
||||
|
||||
activated() {
|
||||
@@ -82,6 +86,10 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
methods: {
|
||||
toggleThumbnails() {
|
||||
this.showStockThumbnails = !this.showStockThumbnails;
|
||||
},
|
||||
|
||||
loadSelectedOption() {
|
||||
const queryCheckpoint = this.$route.query['checkpoint']?.toString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user