mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
asdek: filtry
This commit is contained in:
@@ -167,7 +167,7 @@ export const filterStations = (station: Station, filters: Filter) => {
|
||||
return false;
|
||||
|
||||
if (station.generalInfo) {
|
||||
const { routes, availability, controlType, lines, reqLevel, signalType, SUP, authors } =
|
||||
const { routes, availability, controlType, lines, reqLevel, signalType, SUP, ASDEK, authors } =
|
||||
station.generalInfo;
|
||||
|
||||
if (availability == 'unavailable' && filters['unavailable'] && !station.onlineInfo)
|
||||
@@ -216,6 +216,9 @@ export const filterStations = (station: Station, filters: Filter) => {
|
||||
if (filters['SUP'] && SUP) return false;
|
||||
if (filters['noSUP'] && !SUP) return false;
|
||||
|
||||
if (filters['ASDEK'] && ASDEK) return false;
|
||||
if (filters['noASDEK'] && !ASDEK) return false;
|
||||
|
||||
if (filters['SBL'] && routes.sblNames.length > 0) return false;
|
||||
if (filters['PBL'] && routes.sblNames.length == 0) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user