add work package filter for project scope

pull/6929/head
Wieland Lindenthal 6 years ago
parent f2c75eccc5
commit 5ba62085ec
  1. 13
      frontend/src/app/components/global-search/global-search-work-packages.component.ts

@ -106,6 +106,19 @@ export class GlobalSearchWorkPackagesComponent implements OnDestroy {
operator: '**',
values: [this.globalSearchService.searchTerm] }});
}
if (this.globalSearchService.projectScope === 'current_project') {
filters.push({ subprojectId: {
operator: '!*',
values: [] }});
}
if (this.globalSearchService.projectScope === '') {
filters.push({ subprojectId: {
operator: '*',
values: [] }});
}
this.queryProps = {
'columns[]': ['id', 'project', 'type', 'subject', 'updatedAt'],
filters: JSON.stringify(filters),

Loading…
Cancel
Save