improve evento to approve

This commit is contained in:
Peter Maquiran
2023-02-22 16:53:28 +01:00
parent 2e1e6be4c9
commit 7e2011b642
9 changed files with 65 additions and 30 deletions
@@ -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'