mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
remove console log
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user