mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Merge pull request #140 from Spythere/development
hotfix: checkpoints filtering for unknown sceneries
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<main class="app_main">
|
<main class="app_main">
|
||||||
<router-view v-slot="{ Component }">
|
<router-view v-slot="{ Component }">
|
||||||
<keep-alive exclude="SceneryView">
|
<keep-alive>
|
||||||
<component :is="Component" :key="$route.name" />
|
<component :is="Component" :key="$route.name" />
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
</router-view>
|
</router-view>
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ export default defineComponent({
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
width: 3em;
|
width: 3em;
|
||||||
|
height: 3em;
|
||||||
margin: 0.25em;
|
margin: 0.25em;
|
||||||
|
|
||||||
border: 2px solid #4e4e4e;
|
border: 2px solid #4e4e4e;
|
||||||
|
|||||||
@@ -333,8 +333,12 @@ export const useMainStore = defineStore('mainStore', {
|
|||||||
const missingCheckpointsToAdd = unknownSceneryCheckpoints.get(scenery.name);
|
const missingCheckpointsToAdd = unknownSceneryCheckpoints.get(scenery.name);
|
||||||
|
|
||||||
if (missingCheckpointsToAdd) {
|
if (missingCheckpointsToAdd) {
|
||||||
checkpoints.push(...missingCheckpointsToAdd);
|
[...missingCheckpointsToAdd].forEach((cp) => {
|
||||||
scenery.missingCheckpoints.push(...missingCheckpointsToAdd);
|
if (cp.toLowerCase() == scenery.name.toLowerCase()) return;
|
||||||
|
|
||||||
|
checkpoints.push(cp);
|
||||||
|
scenery.missingCheckpoints.push(cp);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const uniqueTrainIds: string[] = [];
|
const uniqueTrainIds: string[] = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user