Show status column in search results. Show project column unless scope is "current_project"

pull/7135/head
Wieland Lindenthal 6 years ago committed by Oliver Günther
parent d066813e84
commit e441be430f
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 4
      frontend/src/app/modules/global_search/global-search-work-packages.component.ts

@ -157,6 +157,7 @@ export class GlobalSearchWorkPackagesComponent extends WorkPackageEmbeddedTableC
private setQueryProps():void {
let filters:any[] = [];
let columns = ['id', 'project', 'subject', 'type', 'status', 'updatedAt'];
if (this.globalSearchService.searchTerm.length > 0) {
filters.push({ search: {
@ -168,6 +169,7 @@ export class GlobalSearchWorkPackagesComponent extends WorkPackageEmbeddedTableC
filters.push({ subprojectId: {
operator: '!*',
values: [] }});
columns = ['id', 'subject', 'type', 'status', 'updatedAt'];
}
if (this.globalSearchService.projectScope === '') {
@ -177,7 +179,7 @@ export class GlobalSearchWorkPackagesComponent extends WorkPackageEmbeddedTableC
}
this.queryProps = {
'columns[]': ['id', 'project', 'type', 'subject', 'updatedAt'],
'columns[]': columns,
filters: JSON.stringify(filters),
sortBy: JSON.stringify([['updatedAt', 'desc']]),
showHierarchies: false

Loading…
Cancel
Save