mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Poprawka zapisywania filtrów
This commit is contained in:
@@ -228,6 +228,7 @@ export default defineComponent({
|
||||
});
|
||||
|
||||
this.minimumHours = 0;
|
||||
this.changeNumericFilterValue('onlineFromHours', this.minimumHours, true);
|
||||
|
||||
this.$emit('resetFilters');
|
||||
},
|
||||
|
||||
@@ -82,7 +82,7 @@ const filterStations = (station: Station, filters: Filter) => {
|
||||
if (filters['abandoned'] && station.generalInfo.abandoned) return returnMode;
|
||||
|
||||
if (station.generalInfo.default && filters['default']) return returnMode;
|
||||
if (!station.generalInfo.default && filters['notDefault'] && !station.generalInfo.abandoned) return returnMode;
|
||||
if (!station.generalInfo.default && filters['notDefault'] && (!station.generalInfo.abandoned && !station.generalInfo.unavailable)) return returnMode;
|
||||
|
||||
if (filters['real'] && station.generalInfo.lines != '') return returnMode;
|
||||
if (filters['fictional'] && station.generalInfo.lines == '' && (!station.generalInfo.abandoned && !station.generalInfo.unavailable)) return returnMode;
|
||||
|
||||
Reference in New Issue
Block a user