|
|
@ -7,6 +7,7 @@ import { |
|
|
CUSTOM_ELEMENTS_SCHEMA, |
|
|
CUSTOM_ELEMENTS_SCHEMA, |
|
|
ChangeDetectionStrategy, |
|
|
ChangeDetectionStrategy, |
|
|
Component, |
|
|
Component, |
|
|
|
|
|
DestroyRef, |
|
|
ElementRef, |
|
|
ElementRef, |
|
|
Input, |
|
|
Input, |
|
|
OnChanges, |
|
|
OnChanges, |
|
|
@ -69,9 +70,9 @@ export class GfActivitiesFilterComponent implements OnChanges { |
|
|
protected selectedFilters: Filter[] = []; |
|
|
protected selectedFilters: Filter[] = []; |
|
|
protected readonly separatorKeysCodes: number[] = [ENTER, COMMA]; |
|
|
protected readonly separatorKeysCodes: number[] = [ENTER, COMMA]; |
|
|
|
|
|
|
|
|
public constructor() { |
|
|
public constructor(private destroyRef: DestroyRef) { |
|
|
this.searchControl.valueChanges |
|
|
this.searchControl.valueChanges |
|
|
.pipe(takeUntilDestroyed()) |
|
|
.pipe(takeUntilDestroyed(this.destroyRef)) |
|
|
.subscribe((filterOrSearchTerm) => { |
|
|
.subscribe((filterOrSearchTerm) => { |
|
|
if (filterOrSearchTerm) { |
|
|
if (filterOrSearchTerm) { |
|
|
const searchTerm = |
|
|
const searchTerm = |
|
|
|