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:
parent
d02e3cbd33
commit
b3906c6b3d
@ -4,7 +4,6 @@ import {
|
||||
ListSearchQueryTypes,
|
||||
OrientationSearch,
|
||||
RangeSearch,
|
||||
RangeSearchQueryTypes,
|
||||
SearchListQuery,
|
||||
SearchQueryDTO,
|
||||
SearchQueryTypes,
|
||||
@ -42,11 +41,8 @@ export class GallerySearchQueryEntryComponent implements ControlValueAccessor, V
|
||||
constructor() {
|
||||
this.SearchQueryTypesEnum = Utils.enumToArray(SearchQueryTypes);
|
||||
// Range queries need to be added as AND with min and max sub entry
|
||||
this.SearchQueryTypesEnum.filter(e => !RangeSearchQueryTypes.includes(e.key));
|
||||
this.SearchQueryTypesEnum.push({value: 'Date', key: SearchQueryTypes.AND});
|
||||
this.SearchQueryTypesEnum.push({value: 'Rating', key: SearchQueryTypes.AND});
|
||||
this.SearchQueryTypesEnum.push({value: 'Resolution', key: SearchQueryTypes.AND});
|
||||
|
||||
this.SearchQueryTypesEnum =
|
||||
this.SearchQueryTypesEnum.filter(e => e.key !== SearchQueryTypes.UNKNOWN_RELATION);
|
||||
}
|
||||
|
||||
get IsTextQuery(): boolean {
|
||||
|
Loading…
Reference in New Issue
Block a user