1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Fixing search types (removing unknown relation and fixing ranged seasrches)

This commit is contained in:
Patrik J. Braun 2021-03-20 09:23:39 +01:00
parent d02e3cbd33
commit b3906c6b3d

View File

@ -4,7 +4,6 @@ import {
ListSearchQueryTypes, ListSearchQueryTypes,
OrientationSearch, OrientationSearch,
RangeSearch, RangeSearch,
RangeSearchQueryTypes,
SearchListQuery, SearchListQuery,
SearchQueryDTO, SearchQueryDTO,
SearchQueryTypes, SearchQueryTypes,
@ -42,11 +41,8 @@ export class GallerySearchQueryEntryComponent implements ControlValueAccessor, V
constructor() { constructor() {
this.SearchQueryTypesEnum = Utils.enumToArray(SearchQueryTypes); this.SearchQueryTypesEnum = Utils.enumToArray(SearchQueryTypes);
// Range queries need to be added as AND with min and max sub entry // Range queries need to be added as AND with min and max sub entry
this.SearchQueryTypesEnum.filter(e => !RangeSearchQueryTypes.includes(e.key)); this.SearchQueryTypesEnum =
this.SearchQueryTypesEnum.push({value: 'Date', key: SearchQueryTypes.AND}); this.SearchQueryTypesEnum.filter(e => e.key !== SearchQueryTypes.UNKNOWN_RELATION);
this.SearchQueryTypesEnum.push({value: 'Rating', key: SearchQueryTypes.AND});
this.SearchQueryTypesEnum.push({value: 'Resolution', key: SearchQueryTypes.AND});
} }
get IsTextQuery(): boolean { get IsTextQuery(): boolean {