merge developer to feature/search

This commit is contained in:
Peter Maquiran
2021-01-20 10:41:38 +01:00
4444 changed files with 1390485 additions and 29 deletions
+15 -5
View File
@@ -61,13 +61,21 @@ export class SearchPage implements OnInit {
ngOnInit() {
}
close(){
this.modalController.dismiss();
}
changeOrder(order: string){
this.ordinance = order;
reorderList(orderBy: string){
this.ordinance = orderBy;
if(this.ordinance == 'recent'){
this.showSearchDocuments = this.sortArrayISODate(this.searchDocuments);
} else {
this.showSearchDocuments = this.sortArrayISODate(this.searchDocuments).reverse();
}
}
sortArrayISODate(myArray: any){
@@ -82,15 +90,17 @@ export class SearchPage implements OnInit {
*/
basicSearch(){
console.log(this.searchDocumentDate);
this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
,this.searchOrganicEntiry, this.searchDocTypeId).subscribe(res=>{
res.Categories.forEach( e => {
e['Active'] = false;
});
// bind respose
this.searchCategories = res.Categories;
this.searchDocuments = this.sortArrayISODate(res.Documents);
this.showSearchDocuments = this.sortArrayISODate(this.searchDocuments);
// hide show document
if(this.searchDocuments.length >= 1){