mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 13:58:12 +00:00
fix: added hiding project filter propositions for hidden sceneries
This commit is contained in:
@@ -289,8 +289,8 @@ export default defineComponent({
|
|||||||
projectsOptions() {
|
projectsOptions() {
|
||||||
return this.store.stationList
|
return this.store.stationList
|
||||||
.reduce((acc, station) => {
|
.reduce((acc, station) => {
|
||||||
if (!station.generalInfo || !station.generalInfo.project) return acc;
|
if (!station.generalInfo || !station.generalInfo.project || station.generalInfo.hidden) return acc;
|
||||||
if (!acc.includes(station.generalInfo.project)) acc.push(station.generalInfo.project);
|
if (!acc.includes(station.generalInfo.project.trim())) acc.push(station.generalInfo.project.trim());
|
||||||
|
|
||||||
return acc;
|
return acc;
|
||||||
}, [] as string[])
|
}, [] as string[])
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ export interface StationGeneralInfo {
|
|||||||
availability: Availability;
|
availability: Availability;
|
||||||
routes: StationRoutes;
|
routes: StationRoutes;
|
||||||
checkpoints: string[];
|
checkpoints: string[];
|
||||||
|
hidden: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StationRoutes {
|
export interface StationRoutes {
|
||||||
|
|||||||
Reference in New Issue
Block a user