mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
Improve search page
This commit is contained in:
@@ -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 = "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user