mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
Poprawki filtrów
This commit is contained in:
@@ -14,11 +14,11 @@
|
||||
|
||||
<div class="timetable-checkpoints" v-if="station && station.generalInfo?.checkpoints">
|
||||
<span v-for="(cp, i) in station.generalInfo.checkpoints" :key="i">
|
||||
<span v-if="i > 0">•</span>
|
||||
{{ i > 0 && '•' || '' }}
|
||||
|
||||
<button
|
||||
:key="cp.checkpointName"
|
||||
class="checkpoint_item btn--text"
|
||||
class="checkpoint_item"
|
||||
:class="{ current: selectedCheckpoint === cp.checkpointName }"
|
||||
@click="selectCheckpoint(cp)"
|
||||
>
|
||||
@@ -354,8 +354,9 @@ export default defineComponent({
|
||||
font-size: 1.1em;
|
||||
padding: 0.75em 0;
|
||||
|
||||
.checkpoint_item {
|
||||
button.checkpoint_item {
|
||||
color: #aaa;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.checkpoint_item.current {
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ const router = createRouter({
|
||||
scrollBehavior(to, from) {
|
||||
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(),
|
||||
routes,
|
||||
|
||||
@@ -96,7 +96,7 @@ const filterStations = (station: Station, filters: Filter) => {
|
||||
const routes = station.generalInfo.routes;
|
||||
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 (
|
||||
|
||||
Reference in New Issue
Block a user