Dodano filtr dla SUP

This commit is contained in:
2022-01-16 19:37:20 +01:00
parent 1b0c1cb9d6
commit 8580a81454
6 changed files with 14 additions and 1 deletions
+1
View File
@@ -7,6 +7,7 @@ export default interface Filter {
"SPK": boolean;
"SCS": boolean;
"SPE": boolean;
"SUP": boolean;
ręczne: boolean;
mechaniczne: boolean;
"SBL": boolean;
@@ -103,6 +103,7 @@ const filterStations = (station: Station, filters: Filter) => {
if (filters['SPK'] && (station.generalInfo.controlType === 'SPK' || station.generalInfo.controlType.includes('+SPK'))) return returnMode;
if (filters['SCS'] && (station.generalInfo.controlType === 'SCS' || station.generalInfo.controlType.includes('+SCS'))) return returnMode;
if (filters['SPE'] && (station.generalInfo.controlType === 'SPE' || station.generalInfo.controlType.includes('+SPE'))) return returnMode;
if (filters['SUP'] && station.generalInfo.SUP) return returnMode;
if (filters['SCS'] && filters['SPK'] && (station.generalInfo.controlType.includes('SPK') || station.generalInfo.controlType.includes('SCS'))) return returnMode;
@@ -125,6 +126,7 @@ export default class StationFilterManager {
SPK: false,
SCS: false,
SPE: false,
SUP: false,
ręczne: false,
mechaniczne: false,
współczesna: false,