+
@@ -11,11 +11,6 @@
-
-
@@ -56,8 +50,6 @@
GABINETE DIGITAL
-
-
-
-
@@ -102,8 +92,6 @@
Agenda
-
-
@@ -123,8 +109,6 @@
Acções
-
-
@@ -132,7 +116,6 @@
Chat
-
GABINETE DIGITAL
@@ -91,8 +83,6 @@ Início
@@ -113,8 +101,6 @@
Gabinete
-
-
@@ -173,7 +156,6 @@
diff --git a/src/app/shared/header/header.page.ts b/src/app/shared/header/header.page.ts
index 263ed7810..9920c63cf 100644
--- a/src/app/shared/header/header.page.ts
+++ b/src/app/shared/header/header.page.ts
@@ -12,6 +12,7 @@ import { ThemeService } from '../../services/theme.service';
import { RouteService } from 'src/app/services/route.service';
import { PermissionList } from 'src/app/models/permission/permissionList';
import { PermissionService } from 'src/app/services/permission.service';
+import { models } from 'beast-orm';
@Component({
selector: 'app-header',
@@ -51,6 +52,7 @@ export class HeaderPage implements OnInit {
router.events.subscribe((val) => {
this.showSearch = false;
this.isProfileOpen = false
+ this.canOpenSearch = true;
});
@@ -108,6 +110,7 @@ export class HeaderPage implements OnInit {
}
}
+ canOpenSearch = true
async openSearch() {
let classs, showSearchInput, type;
@@ -130,16 +133,28 @@ export class HeaderPage implements OnInit {
type = "AccoesPresidenciais"
}
- const modal = await this.modalController.create({
- component: SearchPage,
- cssClass: classs,
- componentProps: {
- type: type,
- showSearchInput: showSearchInput,
- select: false
- }
- });
- return await modal.present();
+ if(this.canOpenSearch) {
+ this.canOpenSearch = false
+
+ const modal = await this.modalController.create({
+ component: SearchPage,
+ cssClass: classs,
+ componentProps: {
+ type: type,
+ showSearchInput: showSearchInput,
+ select: false
+ }
+ });
+
+ await modal.present();
+
+ modal.onDidDismiss().then(() => {
+
+ this.canOpenSearch = true;
+
+ });
+
+ }
}
changeRoute(path) {
diff --git a/txt.txt b/txt.txt
new file mode 100644
index 000000000..f7c460ef9
--- /dev/null
+++ b/txt.txt
@@ -0,0 +1,2 @@
+assets/images/theme/gov/icons-search-close.svg
+assets/images/icons-most-searched-words-open.svg
\ No newline at end of file
-
-
0 && !production" class="icon-badge"
style="right: -18px;top: -9px;">
{{notificationLength}}
@@ -187,5 +169,4 @@
@@ -24,7 +19,6 @@