mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
save
This commit is contained in:
@@ -37,13 +37,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<div class="msg-bottom d-flex">
|
<div class="msg-bottom d-flex">
|
||||||
<!-- <p class="msg-bottom-p">Uma iniciativa do Gabinete do Calendário Partilhado</p> -->
|
|
||||||
<p class="msg-bottom-p"> </p>
|
<p class="msg-bottom-p"> </p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<ion-icon style="width: 0px; height: 0px;" src='assets/images/theme/gov/icons-search.svg'></ion-icon>
|
||||||
|
<ion-icon style="width: 0px; height: 0px;" src='assets/images/icons-most-searched-words-open.svg'></ion-icon>
|
||||||
|
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
|
|
||||||
<div class="main-tab pb-10 ion-toolbar header-color">
|
<div class="main-tab pb-10 ion-toolbar header-color">
|
||||||
|
|
||||||
<div class="mobile pt-20 d-flex div-top-header justify-space-between">
|
<div class="mobile pt-20 d-flex div-top-header justify-space-between">
|
||||||
|
|
||||||
<div title="Pesquisa" *ngIf="!hideSearchBtn" class="div-search">
|
<div title="Pesquisa" *ngIf="!hideSearchBtn" class="div-search">
|
||||||
<div (click)="openSearch()">
|
<div (click)="openSearch()">
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-45" src='assets/images/icons-search.svg'></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-45" src='assets/images/icons-search.svg'></ion-icon>
|
||||||
@@ -11,11 +11,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div class="div-logo align-center justify-center">
|
|
||||||
<img *ngIf="ThemeService.currentTheme == 'default' " src='assets/images/logo-no-bg.png' alt='logo'>
|
|
||||||
<img *ngIf="ThemeService.currentTheme == 'gov' " src='assets/images/theme/gov/gabinetedigital_logo.png' alt='logo'>
|
|
||||||
<img *ngIf="ThemeService.currentTheme == 'tribunal' " src='assets/images/theme/tribunal/tribunal-constitucional.png' alt='logo'>
|
|
||||||
</div> -->
|
|
||||||
<div class="div-logo align-center justify-center">
|
<div class="div-logo align-center justify-center">
|
||||||
<div class="logo-icon">
|
<div class="logo-icon">
|
||||||
<img *ngIf="ThemeService.currentTheme == 'default' " src='assets/images/logo-no-bg.png' alt='logo'>
|
<img *ngIf="ThemeService.currentTheme == 'default' " src='assets/images/logo-no-bg.png' alt='logo'>
|
||||||
@@ -24,7 +19,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div *ngIf="ThemeService.currentTheme == 'gov'" class="logo-description d-flex align-center justify-content-center">
|
<div *ngIf="ThemeService.currentTheme == 'gov'" class="logo-description d-flex align-center justify-content-center">
|
||||||
<div class="logo-description-content">
|
<div class="logo-description-content">
|
||||||
<!-- <p class="logo-description-text">Calendário Partilhado</p> -->
|
|
||||||
<p class="logo-description-text tp-5">GABINETE DIGITAL</p>
|
<p class="logo-description-text tp-5">GABINETE DIGITAL</p>
|
||||||
<div class="add-line"></div>
|
<div class="add-line"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -56,8 +50,6 @@
|
|||||||
<div class="logo-description d-flex align-center justify-content-center">
|
<div class="logo-description d-flex align-center justify-content-center">
|
||||||
|
|
||||||
<div class="logo-description-content">
|
<div class="logo-description-content">
|
||||||
<!-- <p class="logo-description-text">Calendário Partilhado</p> -->
|
|
||||||
|
|
||||||
<div *ngIf="ThemeService.currentTheme == 'default' " class="logo-description-content">
|
<div *ngIf="ThemeService.currentTheme == 'default' " class="logo-description-content">
|
||||||
<p class="logo-description-text color-white">GABINETE DIGITAL</p>
|
<p class="logo-description-text color-white">GABINETE DIGITAL</p>
|
||||||
<div class="add-line-white"></div>
|
<div class="add-line-white"></div>
|
||||||
@@ -91,8 +83,6 @@
|
|||||||
<span>Início</span>
|
<span>Início</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- *ngIf="p.userPermission([permissionList.Agenda])" -->
|
|
||||||
|
|
||||||
<div *ngIf="p.userPermission([permissionList.Agenda.access])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/agenda')"
|
<div *ngIf="p.userPermission([permissionList.Agenda.access])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/agenda')"
|
||||||
[class.active]="locationPathname() == '/home/agenda'">
|
[class.active]="locationPathname() == '/home/agenda'">
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" src='assets/images/icons-nav-agenda-inactive.svg'></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" src='assets/images/icons-nav-agenda-inactive.svg'></ion-icon>
|
||||||
@@ -102,8 +92,6 @@
|
|||||||
<span>Agenda</span>
|
<span>Agenda</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- *ngIf="p.userPermission([permissionList.Gabinete])" -->
|
|
||||||
|
|
||||||
<div *ngIf="p.userPermission([permissionList.Gabinete.access])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/gabinete-digital')"
|
<div *ngIf="p.userPermission([permissionList.Gabinete.access])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/gabinete-digital')"
|
||||||
[class.active]="locationPathname() == '/home/gabinete-digital'">
|
[class.active]="locationPathname() == '/home/gabinete-digital'">
|
||||||
|
|
||||||
@@ -113,8 +101,6 @@
|
|||||||
<span>Gabinete</span>
|
<span>Gabinete</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- *ngIf="p.userPermission([permissionList.Actions])" -->
|
|
||||||
|
|
||||||
<div *ngIf="p.userPermission([permissionList.Actions.access])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/publications')"
|
<div *ngIf="p.userPermission([permissionList.Actions.access])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/publications')"
|
||||||
[class.active]="locationPathname() == '/home/publications'">
|
[class.active]="locationPathname() == '/home/publications'">
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" src='assets/images/icons-nav-a-es-inactive.svg'></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" src='assets/images/icons-nav-a-es-inactive.svg'></ion-icon>
|
||||||
@@ -123,8 +109,6 @@
|
|||||||
<span>Acções</span>
|
<span>Acções</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- *ngIf="p.userPermission([permissionList.Chat])" -->
|
|
||||||
|
|
||||||
<div *ngIf="p.userPermission([permissionList.Chat.access])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/chat')"
|
<div *ngIf="p.userPermission([permissionList.Chat.access])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/chat')"
|
||||||
[class.active]="locationPathname() == '/home/chat'">
|
[class.active]="locationPathname() == '/home/chat'">
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" src='assets/images/icons-nav-grupos-inactive-dk-white.svg'></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" src='assets/images/icons-nav-grupos-inactive-dk-white.svg'></ion-icon>
|
||||||
@@ -132,7 +116,6 @@
|
|||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-40" src='assets/images/theme/gov/icons-nav-grupos-inactive-dk-white.svg'></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-40" src='assets/images/theme/gov/icons-nav-grupos-inactive-dk-white.svg'></ion-icon>
|
||||||
<span>Chat</span>
|
<span>Chat</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="header-btns d-flex">
|
<div class="header-btns d-flex">
|
||||||
@@ -173,7 +156,6 @@
|
|||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="icon" src='assets/images/theme/tribunal/icons-profile.svg'></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="icon" src='assets/images/theme/tribunal/icons-profile.svg'></ion-icon>
|
||||||
|
|
||||||
<div class="profile-text">
|
<div class="profile-text">
|
||||||
<!-- <ion-label>{{profileLabel(loggeduser.Profile)}}</ion-label> -->
|
|
||||||
<div *ngIf="this.notificationLength > 0 && !production" class="icon-badge"
|
<div *ngIf="this.notificationLength > 0 && !production" class="icon-badge"
|
||||||
style="right: -18px;top: -9px;">
|
style="right: -18px;top: -9px;">
|
||||||
{{notificationLength}}</div>
|
{{notificationLength}}</div>
|
||||||
@@ -187,5 +169,4 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div [class.header-bottom-line] = "ThemeService.currentTheme == 'gov'" style="height: 5px;"></div>
|
<div [class.header-bottom-line] = "ThemeService.currentTheme == 'gov'" style="height: 5px;"></div>
|
||||||
<!-- {{ RouteService.history | json }} -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import { ThemeService } from '../../services/theme.service';
|
|||||||
import { RouteService } from 'src/app/services/route.service';
|
import { RouteService } from 'src/app/services/route.service';
|
||||||
import { PermissionList } from 'src/app/models/permission/permissionList';
|
import { PermissionList } from 'src/app/models/permission/permissionList';
|
||||||
import { PermissionService } from 'src/app/services/permission.service';
|
import { PermissionService } from 'src/app/services/permission.service';
|
||||||
|
import { models } from 'beast-orm';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-header',
|
selector: 'app-header',
|
||||||
@@ -51,6 +52,7 @@ export class HeaderPage implements OnInit {
|
|||||||
router.events.subscribe((val) => {
|
router.events.subscribe((val) => {
|
||||||
this.showSearch = false;
|
this.showSearch = false;
|
||||||
this.isProfileOpen = false
|
this.isProfileOpen = false
|
||||||
|
this.canOpenSearch = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@@ -108,6 +110,7 @@ export class HeaderPage implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
canOpenSearch = true
|
||||||
async openSearch() {
|
async openSearch() {
|
||||||
|
|
||||||
let classs, showSearchInput, type;
|
let classs, showSearchInput, type;
|
||||||
@@ -130,16 +133,28 @@ export class HeaderPage implements OnInit {
|
|||||||
type = "AccoesPresidenciais"
|
type = "AccoesPresidenciais"
|
||||||
}
|
}
|
||||||
|
|
||||||
const modal = await this.modalController.create({
|
if(this.canOpenSearch) {
|
||||||
component: SearchPage,
|
this.canOpenSearch = false
|
||||||
cssClass: classs,
|
|
||||||
componentProps: {
|
const modal = await this.modalController.create({
|
||||||
type: type,
|
component: SearchPage,
|
||||||
showSearchInput: showSearchInput,
|
cssClass: classs,
|
||||||
select: false
|
componentProps: {
|
||||||
}
|
type: type,
|
||||||
});
|
showSearchInput: showSearchInput,
|
||||||
return await modal.present();
|
select: false
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
await modal.present();
|
||||||
|
|
||||||
|
modal.onDidDismiss().then(() => {
|
||||||
|
|
||||||
|
this.canOpenSearch = true;
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
changeRoute(path) {
|
changeRoute(path) {
|
||||||
|
|||||||
Reference in New Issue
Block a user