Improve search page

This commit is contained in:
Peter Maquiran
2021-01-20 13:52:25 +01:00
parent ef8b2a01df
commit 36e34b21d9
7 changed files with 22 additions and 15 deletions
+13 -2
View File
@@ -72,9 +72,9 @@ export class SearchPage implements OnInit {
this.ordinance = orderBy;
if(this.ordinance == 'recent'){
this.showSearchDocuments = this.sortArrayISODate(this.searchDocuments);
} else {
this.showSearchDocuments = this.sortArrayISODate(this.searchDocuments).reverse();
} else {
this.showSearchDocuments = this.sortArrayISODate(this.searchDocuments)
}
}
@@ -102,6 +102,8 @@ export class SearchPage implements OnInit {
this.searchDocuments = this.sortArrayISODate(res.Documents);
this.reorderList(this.ordinance);
// hide show document
if(this.searchDocuments.length >= 1){
this.showDocuments = true;
@@ -130,6 +132,15 @@ export class SearchPage implements OnInit {
}
activeCategoty(i){
this.searchCategories.forEach((e) => {
e['Active'] = false;
})
this.searchCategories[i]['Active'] = true;
}
clearInputRemetente(){
this.searchSender = "";
}