mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Poprawki filtrów
This commit is contained in:
@@ -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">•</span>
|
{{ i > 0 && '•' || '' }}
|
||||||
|
|
||||||
<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
@@ -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,
|
||||||
|
|||||||
@@ -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 (
|
||||||
|
|||||||
Reference in New Issue
Block a user