diff --git a/src/app/pages/search/search.page.ts b/src/app/pages/search/search.page.ts index 7181ae1c8..f297717b6 100644 --- a/src/app/pages/search/search.page.ts +++ b/src/app/pages/search/search.page.ts @@ -53,7 +53,6 @@ export class SearchPage implements OnInit { type : "Agenda" | "Correspondencia" | "AccoesPresidenciais" | "ArquivoDespachoElect" | "AccoesPresidenciais & ArquivoDespachoElect" = "Agenda"; select: boolean = false; - findOnly = [] showSearchInput = false @@ -70,7 +69,6 @@ export class SearchPage implements OnInit { this.type = this.navParams.get('type'); this.select = this.navParams.get('select'); - this.findOnly = this.navParams.get('findOnly') this.showSearchInput = this.navParams.get('showSearchInput'); @@ -201,13 +199,6 @@ export class SearchPage implements OnInit { } else { this.showSearchDocuments = this.sortArrayISODate(this.searchDocuments) } - - if(this.findOnly){ - if(this.findOnly.length >= 1) { - this.showSearchDocuments = this.showSearchDocuments.filter((e)=> this.findOnly.includes(e.ApplicationType)) - } - } - } sortArrayISODate(myArray: any) { @@ -537,10 +528,10 @@ export class SearchPage implements OnInit { } - async filterDocList(categoryName:string) { + async filterDocList(categoryName:string){ // show all category - if(this. showCategory == categoryName ) { + if(this. showCategory == categoryName ){ this.showSearchDocuments = this.searchDocuments;