Pull request #93: RED-920: Include search field in reset filter
Merge in RED/ui from RED-920 to master * commit '871a6b1cd6d8133ea766f7f3e35699dc9996001d': Include search field in reset filter
This commit is contained in:
commit
81f3d36862
@ -97,7 +97,10 @@ export class ProjectListingScreenComponent implements OnInit, OnDestroy {
|
||||
|
||||
public get hasActiveFilters() {
|
||||
return (
|
||||
this._statusFilterComponent?.hasActiveFilters || this._peopleFilterComponent?.hasActiveFilters || this._needsWorkFilterComponent?.hasActiveFilters
|
||||
this._statusFilterComponent?.hasActiveFilters ||
|
||||
this._peopleFilterComponent?.hasActiveFilters ||
|
||||
this._needsWorkFilterComponent?.hasActiveFilters ||
|
||||
this.searchForm.get('query').value
|
||||
);
|
||||
}
|
||||
|
||||
@ -110,6 +113,7 @@ export class ProjectListingScreenComponent implements OnInit, OnDestroy {
|
||||
this._peopleFilterComponent.deactivateAllFilters();
|
||||
this._needsWorkFilterComponent.deactivateAllFilters();
|
||||
this.filtersChanged();
|
||||
this.searchForm.reset({ query: '' });
|
||||
}
|
||||
|
||||
private _calculateData() {
|
||||
|
||||
@ -159,7 +159,10 @@ export class ProjectOverviewScreenComponent implements OnInit, OnDestroy {
|
||||
|
||||
public get hasActiveFilters() {
|
||||
return (
|
||||
this._statusFilterComponent?.hasActiveFilters || this._peopleFilterComponent?.hasActiveFilters || this._needsWorkFilterComponent?.hasActiveFilters
|
||||
this._statusFilterComponent?.hasActiveFilters ||
|
||||
this._peopleFilterComponent?.hasActiveFilters ||
|
||||
this._needsWorkFilterComponent?.hasActiveFilters ||
|
||||
this.searchForm.get('query').value
|
||||
);
|
||||
}
|
||||
|
||||
@ -168,6 +171,7 @@ export class ProjectOverviewScreenComponent implements OnInit, OnDestroy {
|
||||
this._peopleFilterComponent.deactivateAllFilters();
|
||||
this._needsWorkFilterComponent.deactivateAllFilters();
|
||||
this.filtersChanged();
|
||||
this.searchForm.reset({ query: '' });
|
||||
}
|
||||
|
||||
reloadProjects() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user