mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
validate logic for tab labels
This commit is contained in:
@@ -76,7 +76,7 @@ export class DespachosPrPage implements OnInit {
|
||||
|
||||
this.profile = 'mdgpr';
|
||||
|
||||
if(this.p.userPermission([this.p.permissionList.Gabinete.md_tasks])) {
|
||||
if(!this.p.userRole("PR")) {
|
||||
this.headerName = `Despachos ${ environment.despachoLabel }`
|
||||
} else {
|
||||
this.headerName = "Despachos criados por mim"
|
||||
|
||||
@@ -46,7 +46,7 @@ constructor (
|
||||
this.loggeduser = SessionStore.user;
|
||||
|
||||
|
||||
if(this.p.userPermission([this.p.permissionList.Gabinete.md_tasks])) {
|
||||
if(!this.p.userRole('PR')) {
|
||||
this.headerName = `Despachos ${ environment.despachoLabel }`
|
||||
} else {
|
||||
this.headerName = "Despachos criados por mim"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<ion-header class="ion-no-border">
|
||||
<ion-progress-bar type="indeterminate" *ngIf="skeletonLoader"></ion-progress-bar>
|
||||
<div class="title">
|
||||
<div class="thetitle"><ion-label *ngIf="p.userPermission([p.permissionList.Gabinete.md_tasks])" >Diplomas por Assinar PR</ion-label></div>
|
||||
<div class="thetitle"><ion-label *ngIf="p.userPermission([p.permissionList.Gabinete.pr_tasks])" >Diplomas para assinar PR</ion-label></div>
|
||||
<div class="thetitle"><ion-label *ngIf="!p.userRole('PR')" >Diplomas por Assinar PR</ion-label></div>
|
||||
<div class="thetitle"><ion-label *ngIf="p.userRole('PR')" >Diplomas para assinar</ion-label></div>
|
||||
<div class="theicon d-flex align-center">
|
||||
<!-- <div>
|
||||
<div title="Pesquisa" *ngIf="!hideSearchBtn" class="mr-20 d-flex align-center cursor-pointer">
|
||||
|
||||
Reference in New Issue
Block a user