Fix Anexar Documentos button

This commit is contained in:
Peter Maquiran
2021-12-11 17:10:25 +01:00
parent 621e2180f3
commit e2d2615210
2 changed files with 12 additions and 3 deletions
@@ -434,7 +434,8 @@ export class ExpedienteDetailPage implements OnInit {
componentProps: {
type: 'AccoesPresidenciais & ArquivoDespachoElect',
showSearchInput: true,
select: true
select: true,
findOnly: [8]
}
});
await modal.present();
+8
View File
@@ -53,6 +53,7 @@ export class SearchPage implements OnInit {
type : "Agenda" | "Correspondencia" | "AccoesPresidenciais" | "ArquivoDespachoElect" | "AccoesPresidenciais & ArquivoDespachoElect" = "Agenda";
select: boolean = false;
findOnly = []
showSearchInput = false
@@ -69,6 +70,7 @@ 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');
@@ -199,6 +201,12 @@ export class SearchPage implements OnInit {
} else {
this.showSearchDocuments = this.sortArrayISODate(this.searchDocuments)
}
if(this.findOnly.length >= 1) {
this.showSearchDocuments = this.showSearchDocuments.filter((e)=> this.findOnly.includes(e.ApplicationType))
}
}
sortArrayISODate(myArray: any) {