remove console logs

This commit is contained in:
Peter Maquiran
2023-09-22 17:34:39 +01:00
parent e4bba2e68b
commit 6033ecdfb0
6 changed files with 31 additions and 27 deletions
@@ -126,10 +126,10 @@ export class NewEventPage implements OnInit {
}
if (!this.CalendarName) {
console.log('true', this.eventService.calendarNamesAry.includes('Meu calendario'))
// console.log('true', this.eventService.calendarNamesAry.includes('Meu calendario'))
if (this.eventService.calendarNamesAry.includes('Meu calendario')) {
this.CalendarName = 'Meu calendario';
console.log(this.eventService.calendarNamesAry)
// console.log(this.eventService.calendarNamesAry)
} else {
this.CalendarName = this.eventService.calendarNamesAry[0]
}
@@ -391,7 +391,7 @@ export class NewEventPage implements OnInit {
}
async save() {
this.injectValidation()
this.runValidation()
@@ -433,7 +433,7 @@ export class NewEventPage implements OnInit {
} else if (this.loggeduser.Profile == 'SGGPR') {
this.saveAproveEvent();
@@ -622,23 +622,23 @@ export class NewEventPage implements OnInit {
checkRoleInArray() {
for (let index = 0; index < this.eventService.calendarNamesAry.length; index++) {
console.log('ROLE1', this.eventService.calendarNamesAry[index])
// console.log('ROLE1', this.eventService.calendarNamesAry[index])
}
for (let index = 0; index < this.eventService.calendarRole.length; index++) {
console.log('ROLE2', this.eventService.calendarRole[index])
// console.log('ROLE2', this.eventService.calendarRole[index])
}
}
//Deve ser removido posteriormente
//Deve ser removido posteriormente
async saveAproveEvent() {
console.log(this.postEvent)
console.log(this.postEvent.CalendarName)
console.log(this.CalendarName)
console.log(this.eventService.calendarNamesAry)
// console.log(this.postEvent)
// console.log(this.postEvent.CalendarName)
// console.log(this.CalendarName)
// console.log(this.eventService.calendarNamesAry)
const CalendarId = this.selectedCalendarId()
let selectedCalendar
@@ -682,7 +682,7 @@ export class NewEventPage implements OnInit {
}
});
});
if (DocumentToSave.length == 0) {
this.afterSave();
} */
@@ -725,7 +725,7 @@ export class NewEventPage implements OnInit {
}
});
});
if (DocumentToSave.length == 0) {
this.afterSave();
} */