mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
fix search
This commit is contained in:
@@ -12,6 +12,7 @@ import { SearchCategory, SearchList } from 'src/app/models/search-document';
|
||||
import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { ViewDocumentPage } from 'src/app/modals/view-document/view-document.page';
|
||||
import { Router } from '@angular/router';
|
||||
import { environment } from 'src/environments/environment';
|
||||
|
||||
@Component({
|
||||
selector: 'app-search',
|
||||
@@ -574,7 +575,9 @@ export class SearchPage implements OnInit {
|
||||
|
||||
res.Categories.forEach( e => {
|
||||
e['Active'] = false;
|
||||
e['Name'] = "Publicações"
|
||||
if(!environment.presidencial) {
|
||||
e['Name'] = "Publicações"
|
||||
}
|
||||
});
|
||||
|
||||
// bind respose
|
||||
@@ -583,7 +586,9 @@ export class SearchPage implements OnInit {
|
||||
}
|
||||
|
||||
for ( const a of this.sortArrayISODate(res.Documents)) {
|
||||
a.DocTypeDesc = "Publicações"
|
||||
if(!environment.presidencial) {
|
||||
a.DocTypeDesc = "Publicações"
|
||||
}
|
||||
this.searchDocuments.push(a);
|
||||
}
|
||||
|
||||
@@ -621,19 +626,25 @@ export class SearchPage implements OnInit {
|
||||
|
||||
res.Categories.forEach( e => {
|
||||
e['Active'] = false;
|
||||
e['Name'] = "Acções"
|
||||
if(!environment.presidencial) {
|
||||
e['Name'] = "Acções"
|
||||
}
|
||||
});
|
||||
|
||||
// bind respose
|
||||
for ( const a of res.Categories) {
|
||||
this.searchCategories.push(a);
|
||||
if(!environment.presidencial) {
|
||||
// bind respose
|
||||
for ( const a of res.Categories) {
|
||||
this.searchCategories.push(a);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
for ( const a of this.sortArrayISODate(res.Documents)) {
|
||||
a.DocTypeDesc = "Acções"
|
||||
this.searchDocuments.push(a);
|
||||
if(!environment.presidencial) {
|
||||
a.DocTypeDesc = "Acções"
|
||||
this.searchDocuments.push(a);
|
||||
}
|
||||
}
|
||||
|
||||
this.reorderList(this.ordinance);
|
||||
|
||||
Reference in New Issue
Block a user