hide fild from search on publications route

This commit is contained in:
Eudes Inácio
2023-10-11 17:15:29 +01:00
parent d9e561cefa
commit 1cd8de8bde
4 changed files with 19 additions and 7 deletions
+13 -1
View File
@@ -89,6 +89,7 @@ export class SearchPage implements OnInit {
select: boolean = false;
showSearchInput = false
checkRoutPublication: boolean;
@ViewChild('picker1') picker1: any;
@@ -114,13 +115,16 @@ export class SearchPage implements OnInit {
if (this.currentPath.includes('/home/agenda')) {
this.type = "Agenda"
} else if (this.currentPath.includes('/home/gabinete-digital')) {
this.type = "AccoesPresidenciais & ArquivoDespachoElect"
} else if (this.currentPath.includes('/home/publications')) {
this.type = "AccoesPresidenciais"
} else {
}
}
}
@@ -193,6 +197,14 @@ export class SearchPage implements OnInit {
ngOnInit() {
if(this.currentPath.includes('/home/publications')) {
this.checkRoutPublication = false;
console.log(this.checkRoutPublication)
} else {
this.checkRoutPublication = true;
console.log(this.checkRoutPublication)
}
this.wordCloud();
window.onresize = (event) => {