Improve search add search tags

This commit is contained in:
Peter Maquiran
2021-04-14 11:04:28 +01:00
parent 2af682d54f
commit 377a29c5f7
3 changed files with 28 additions and 2 deletions
+6
View File
@@ -36,6 +36,8 @@ export class SearchPage implements OnInit {
showLoader: boolean;
currentPath: string
// See http://idangero.us/swiper/api/ for valid options.
slideOpts = {
slidesPerView: parseInt(`${window.innerWidth/147}`, 10),
@@ -53,6 +55,8 @@ export class SearchPage implements OnInit {
private search: SearchService,
private modalCtrl: ModalController,) {
this.ordinance = "recent";
this.currentPath= window.location.pathname;
}
ngOnInit() {
@@ -220,6 +224,7 @@ export class SearchPage implements OnInit {
// bind respose
this.sortArrayISODate(res.Documents).forEach(e => {
e['appName'] = 'Correspondencia'
this.searchDocuments.push(e)
});
@@ -245,6 +250,7 @@ export class SearchPage implements OnInit {
this.sortArrayISODate(res.Documents).forEach(e => {
e['appName'] = 'ArquivoDespachoElect'
this.searchDocuments.push(e)
});