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