remove console log

This commit is contained in:
Peter Maquiran
2023-02-27 18:34:42 +01:00
parent 1957853678
commit 79213a543b
4 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ export class HomePage implements OnInit {
if (this.p.userPermission([this.p.permissionList.Agenda.access]) && !this.eventService.hasAnyCalendar) {
throw ('User ' + SessionStore.user.FullName + 'has No calendar');
}
if (this.p.userPermission([this.p.permissionList.Gabinete.pr_tasks]) && SessionStore.user.RoleID == this.RoleIdService.PRES) {
if (this.p.userPermission([this.p.permissionList.Gabinete.pr_tasks]) && SessionStore.user.RoleID != this.RoleIdService.PRES) {
throw ('User has PRES permission but not roleId');
}
}, 1000)
+5 -5
View File
@@ -156,6 +156,7 @@ export class EventsPage implements OnInit {
let end = date.getFullYear() + "-" + month + "-" + date.getDate() + " 23:59:59";
if(SessionStore.user) {
let onwEvent:any = await this.eventService.getAllOwnEvents(start, end).catch((error) => {
this.showLoader = false;
this.showAgendaLoader = false;
console.error(error)
})
@@ -163,12 +164,11 @@ export class EventsPage implements OnInit {
if(onwEvent?.length) {
this.totalEvent = onwEvent.length;
}
this.showLoader = false;
this.showAgendaLoader = false;
} else {
}
}
this.showLoader = false;
this.showAgendaLoader = false;
}
addEventToDb(list) {