Fixe search

This commit is contained in:
Peter Maquiran
2021-04-13 10:35:43 +01:00
parent 31181b37c3
commit a8a96c5a04
2 changed files with 6 additions and 5 deletions
-1
View File
@@ -613,7 +613,6 @@ export class AgendaPage implements OnInit {
this.eventSource=[];
this.eventsListPessoal= [];
this.eventsListPessoal = response.filter(data => data.CalendarName == "Pessoal");
// loop
+6 -4
View File
@@ -168,7 +168,7 @@ export class SearchPage implements OnInit {
/**
* @description Basic search
*/
basicSearch(){
basicSearch(){
if(window.location.pathname == '/home/agenda'){
@@ -205,9 +205,12 @@ export class SearchPage implements OnInit {
this.showLoader = true;
this.searchCategories = [];
this.searchDocuments = [];
this.showSearchDocuments = [];
this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
,this.searchOrganicEntiry, this.searchDocTypeId, '8').subscribe(res=>{
console.log(res);
res.Categories.forEach( e => {
e['Active'] = false;
@@ -234,14 +237,12 @@ export class SearchPage implements OnInit {
this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
,this.searchOrganicEntiry, this.searchDocTypeId, '361').subscribe(res=>{
console.log(res);
res.Categories.forEach( e => {
e['Active'] = false;
this.searchCategories.push(e)
});
// bind respose
this.sortArrayISODate(res.Documents).forEach(e => {
this.searchDocuments.push(e)
@@ -259,6 +260,7 @@ export class SearchPage implements OnInit {
this.showLoader = false;
this.loadWordCloud();
});
} else if (window.location.pathname == '/home/publications'){
this.showLoader = true;