mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
improve profile reactiveness and action page performance
This commit is contained in:
@@ -58,39 +58,46 @@
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="d-flex align-center flex-column" (click)="takePicture()">
|
||||
<div class="d-flex justify-center align-center " >
|
||||
<div mat-icon-button [matMenuTriggerFor]="menu" aria-label="Example icon-button with a menu">
|
||||
<div class="d-flex align-center flex-column" >
|
||||
|
||||
<div *ngIf="profilePicture == '' ">
|
||||
<img
|
||||
<div *ngIf="profilePictureSubject == undefined ">
|
||||
<img
|
||||
|
||||
class="profile-pic" src="assets/images/theme/gov/icons-profile.svg">
|
||||
class="profile-pic" src="assets/images/theme/gov/icons-profile.svg">
|
||||
|
||||
<!-- <img *ngIf="SessionStore.user.RoleDescription == 'Presidente da República' " class="profile-pic"
|
||||
src='assets/images/presidente.png'>
|
||||
<img *ngIf="SessionStore.user.RoleDescription == 'Ministro e Director do Gabinete do PR' "
|
||||
class="profile-pic" src='assets/images/ministro.png'>
|
||||
<img *ngIf="SessionStore.user.RoleDescription == 'Secretário Geral' " class="profile-pic"
|
||||
src='assets/images/secretaria_geral.png'> -->
|
||||
</div>
|
||||
|
||||
<div *ngIf="profilePicture != '' ">
|
||||
<img class="profile-pic" src={{profilePicture}}>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- <ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="profile-pic"
|
||||
src="assets/images/icons-default-profile.svg"></ion-icon>
|
||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="profile-pic"
|
||||
src="assets/images/theme/gov/icons-profile.svg"></ion-icon>
|
||||
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " class="profile-pic"
|
||||
src="assets/images/theme/{{ThemeService.currentTheme}}/icons-profile.svg"></ion-icon> -->
|
||||
<div
|
||||
style="background: black;width: 50px;height: 50px;position: relative;top: -33px;left: 38px;border-radius: 55px;overflow: hidden;border: 5px solid white;">
|
||||
<img src="assets/images/camera.png">
|
||||
<!-- <img *ngIf="SessionStore.user.RoleDescription == 'Presidente da República' " class="profile-pic"
|
||||
src='assets/images/presidente.png'>
|
||||
<img *ngIf="SessionStore.user.RoleDescription == 'Ministro e Director do Gabinete do PR' "
|
||||
class="profile-pic" src='assets/images/ministro.png'>
|
||||
<img *ngIf="SessionStore.user.RoleDescription == 'Secretário Geral' " class="profile-pic"
|
||||
src='assets/images/secretaria_geral.png'> -->
|
||||
</div>
|
||||
|
||||
<div *ngIf="(profilePictureSubject | async) as calendarData">
|
||||
<img class="profile-pic" src={{calendarData.base64}}>
|
||||
</div>
|
||||
|
||||
|
||||
<div
|
||||
*ngIf="camecaIcons"
|
||||
style="background: black;width: 50px;height: 50px;position: relative;margin-top: -33px;left: 38px;border-radius: 55px;overflow: hidden;border: 5px solid white;">
|
||||
<img src="assets/images/camera.png">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<mat-menu #menu="matMenu">
|
||||
<button (click)="uploadPicture(CameraSource.Camera)" mat-menu-item>
|
||||
<span>take picture</span>
|
||||
</button>
|
||||
<button (click)="uploadPicture(CameraSource.Photos)" mat-menu-item >
|
||||
<span>Ficheiro</span>
|
||||
</button>
|
||||
</mat-menu>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="profile-info">
|
||||
|
||||
Reference in New Issue
Block a user