Poprawki filtrów

This commit is contained in:
2022-09-29 19:40:15 +02:00
parent 846d4d0547
commit 1cc4d76e4d
3 changed files with 6 additions and 5 deletions
@@ -14,11 +14,11 @@
<div class="timetable-checkpoints" v-if="station && station.generalInfo?.checkpoints"> <div class="timetable-checkpoints" v-if="station && station.generalInfo?.checkpoints">
<span v-for="(cp, i) in station.generalInfo.checkpoints" :key="i"> <span v-for="(cp, i) in station.generalInfo.checkpoints" :key="i">
<span v-if="i > 0">&bull;</span> {{ i > 0 && '&bull;' || '' }}
<button <button
:key="cp.checkpointName" :key="cp.checkpointName"
class="checkpoint_item btn--text" class="checkpoint_item"
:class="{ current: selectedCheckpoint === cp.checkpointName }" :class="{ current: selectedCheckpoint === cp.checkpointName }"
@click="selectCheckpoint(cp)" @click="selectCheckpoint(cp)"
> >
@@ -354,8 +354,9 @@ export default defineComponent({
font-size: 1.1em; font-size: 1.1em;
padding: 0.75em 0; padding: 0.75em 0;
.checkpoint_item { button.checkpoint_item {
color: #aaa; color: #aaa;
display: inline;
} }
.checkpoint_item.current { .checkpoint_item.current {
+1 -1
View File
@@ -59,7 +59,7 @@ const router = createRouter({
scrollBehavior(to, from) { scrollBehavior(to, from) {
if (to.name == 'SceneryView' && from.name) return { el: `.app_main` }; if (to.name == 'SceneryView' && from.name) return { el: `.app_main` };
if (from.name == 'SceneryView' && to.name == 'StationsView') return { el: `.last-selected`, top: 20 }; // if (from.name == 'SceneryView' && to.name == 'StationsView') return { el: `.last-selected`, top: 20 };
}, },
history: createWebHistory(), history: createWebHistory(),
routes, routes,
+1 -1
View File
@@ -96,7 +96,7 @@ const filterStations = (station: Station, filters: Filter) => {
const routes = station.generalInfo.routes; const routes = station.generalInfo.routes;
const availability = station.generalInfo.availability; const availability = station.generalInfo.availability;
if (filters['abandoned'] && availability == 'abandoned') return returnMode; if (filters['abandoned'] && availability == 'abandoned' && !station.onlineInfo) return returnMode;
if (availability == 'default' && filters['default']) return returnMode; if (availability == 'default' && filters['default']) return returnMode;
if ( if (