mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
improve evento to approve
This commit is contained in:
@@ -49,11 +49,13 @@ export class EventListPage implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
this.segment = this.loggeduser.Profile;
|
||||
if(this.segment != "PR" && this.segment != "MDGPR") {
|
||||
this.segment = "Unknown";
|
||||
if(!this.segment) {
|
||||
if(this.eventService.calendarNamesAry.includes('Meu calendario')) {
|
||||
this.segment = 'Meu calendario';
|
||||
} else {
|
||||
this.segment = this.eventService.calendarNamesAry[0].OwnerUserId
|
||||
}
|
||||
}
|
||||
|
||||
const pathname = window.location.pathname
|
||||
|
||||
this.router.events.forEach((event) => {
|
||||
@@ -83,7 +85,7 @@ export class EventListPage implements OnInit {
|
||||
|
||||
const segment = this.segment
|
||||
|
||||
if(this.segment == 'MDGPR') {
|
||||
if(this.segment == 'Meu calendario') {
|
||||
// color
|
||||
if(SessionStore.user.Profile == 'PR') {
|
||||
this.color = 'pr'
|
||||
|
||||
Reference in New Issue
Block a user