diff --git a/src/app/pages/search/search.page.html b/src/app/pages/search/search.page.html index b772518b1..70db3019c 100644 --- a/src/app/pages/search/search.page.html +++ b/src/app/pages/search/search.page.html @@ -77,7 +77,7 @@ - + {{ category.Name }} {{ category.Qtd }} diff --git a/src/app/pages/search/search.page.ts b/src/app/pages/search/search.page.ts index 3d8d77d8f..1ddddad0a 100644 --- a/src/app/pages/search/search.page.ts +++ b/src/app/pages/search/search.page.ts @@ -123,7 +123,6 @@ export class SearchPage implements OnInit { if(window.location.pathname == '/home/agenda'){ - console.log('aplication type 0'); this.showLoader = true; @@ -153,7 +152,6 @@ export class SearchPage implements OnInit { }); } else if (window.location.pathname =='/home/gabinete-digital'){ - console.log('aplication type 8,361'); this.showLoader = true; @@ -209,8 +207,6 @@ export class SearchPage implements OnInit { this.showLoader = true; - console.log('aplication type 386'); - this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender ,this.searchOrganicEntiry, this.searchDocTypeId, '386').subscribe(res=>{ console.log(res); @@ -260,11 +256,18 @@ export class SearchPage implements OnInit { activeCategoty(i){ - this.searchCategories.forEach((e) => { - e['Active'] = false; + this.searchCategories.forEach((e, j) => { + if(i != j){ + e['Active'] = false; + } }) - this.searchCategories[i]['Active'] = true; + if (this.searchCategories[i]['Active']){ + this.searchCategories[i]['Active'] = false; + } else { + this.searchCategories[i]['Active'] = true + } + } clearInputRemetente(){
{{ category.Name }}