Remove relevant console log,

This commit is contained in:
Eudes Inácio
2022-04-28 09:32:27 +01:00
parent 3021e8b0e1
commit 2826cea9df
153 changed files with 1001 additions and 1132 deletions
@@ -72,7 +72,7 @@ export class EditEventPage implements OnInit {
else{
this.pageId = paramMap.get('eventId');
eventid = paramMap.get('eventId');
console.log(eventid);
}
if (paramMap.has("caller")){
@@ -164,7 +164,7 @@ export class EditEventPage implements OnInit {
this.activatedRoute.paramMap.subscribe(paramMap =>{
if (paramMap.has("profile")){
console.log(paramMap.get('profile'));
}
});
@@ -192,7 +192,7 @@ export class EditEventPage implements OnInit {
{
this.attachamentsService.getAttachmentsById(this.pageId).subscribe(res => {
this.loadedEventAttachments = res;
console.log(res);
});
}
@@ -74,7 +74,7 @@ export class EventDetailModalPage implements OnInit {
else{
this.pageId = paramMap.get('eventId');
eventid = paramMap.get('eventId');
console.log(eventid);
}
if (paramMap.has("caller")){
@@ -190,10 +190,10 @@ export class EventDetailModalPage implements OnInit {
this.loadedEventAttachments = attachments;
}); */
this.attachamentsService.getAttachmentsById(this.pageId).subscribe(res => {
console.log(res);
},(error) => {
console.log(error);
});
}
@@ -72,7 +72,6 @@ export class EventDetailPage implements OnInit {
else{
this.pageId = paramMap.get('eventId');
eventid = paramMap.get('eventId');
console.log(eventid);
}
if (paramMap.has("caller")){
@@ -162,7 +161,6 @@ export class EventDetailPage implements OnInit {
this.activatedRoute.paramMap.subscribe(paramMap =>{
if (paramMap.has("profile")){
console.log(paramMap.get('profile'));
}
});
@@ -188,11 +186,9 @@ export class EventDetailPage implements OnInit {
loadAttachments()
{
/* console.log(this.pageId); */
this.attachamentsService.getAttachmentsById(this.pageId).subscribe(res => {
this.loadedEventAttachments = res;
console.log(res);
});
}
+19 -20
View File
@@ -104,16 +104,15 @@ export class EventsPage implements OnInit {
private storage: Storage,
public p: PermissionService,
) {
/* this.existingScreenOrientation = this.screenOrientation.type;
console.log(this.existingScreenOrientation); */
/* this.existingScreenOrientation = this.screenOrientation.type; */
this.loggeduser = authService.ValidatedUser;
this.prEventList = null;
this.platform.resize.subscribe(async () => {
//console.log('Resize event detected');
// console.log('Resize event detected');
//
//
});
@@ -175,7 +174,7 @@ export class EventsPage implements OnInit {
// Lock to portrait
/* lockToPortrait() {
this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.PORTRAIT);
console.log('set');
} */
// Lock to landscape
@@ -191,7 +190,7 @@ export class EventsPage implements OnInit {
/* checkScreenOrientation() {
if (window.innerWidth < 701) {
this.lockToPortrait();
console.log('was here');
}
else {
@@ -263,7 +262,7 @@ export class EventsPage implements OnInit {
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
this.storage.set('events', list).then(() => {
// console.log('Init events saved')
//
})
} else {
if (list.length > 0) {
@@ -308,7 +307,7 @@ export class EventsPage implements OnInit {
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
this.storage.set('process', list).then(() => {
// console.log('Init process saved')
//
})
} else {
if (list.length > 0) {
@@ -328,17 +327,17 @@ export class EventsPage implements OnInit {
// ('dateeeeee', dateToday)
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
this.storage.get('events').then((events: any[]) => {
// console.log('Today events',events)
//
let todayEvents = new Array()
this.listToPresent = events
this.totalEvent = this.listToPresent.length
this.currentEvent = this.listToPresent[0].Subject
this.currentHoursMinutes = this.listToPresent[0].StartDate
// console.log("All events from local,", events)
//
})
this.storage.get('process').then((process: any[]) => {
// console.log('OFOFOFOOF22222', process)
//
const ExpedienteTask = process.map(e => this.expedienteTaskPipe.transform(e))
this.listToPresentexpediente = ExpedienteTask;
})
@@ -372,7 +371,7 @@ export class EventsPage implements OnInit {
Subject: element.Subject
}
let starteDate = momentG(new Date(element.StartDate), 'yyyy-MM-dd');
// console.log('startTOdayyy', starteDate)
//
if (dateToday == starteDate) {
todayEvents.push(eventObject);
}
@@ -381,12 +380,12 @@ export class EventsPage implements OnInit {
this.totalEvent = this.listToPresent.length
this.currentEvent = this.listToPresent[0].Subject
this.currentHoursMinutes = this.listToPresent[0].StartDate
// console.log("All events from local,", event)
//
})
this.sqliteservice.getprocessByworkflow("Expediente").then((process: any[]) => {
// console.log('OFOFOFOOF', process)
//
if (process.length > 0 || process != undefined) {
@@ -408,7 +407,7 @@ export class EventsPage implements OnInit {
}
})
// console.log('OFOFOFOOF22222', expedientlist)
//
const ExpedienteTask = expedientlist.map(e => this.expedienteTaskPipe.transform(e))
this.listToPresentexpediente = ExpedienteTask;
@@ -440,12 +439,12 @@ export class EventsPage implements OnInit {
changeProfile() {
if (this.profile == "mdgpr") {
// console.log('pr');
//
this.profile = "pr";
this.RefreshEvents();
}
else {
// console.log('mdgpr');
//
this.profile = "mdgpr";
this.RefreshEvents();
}
@@ -457,7 +456,7 @@ export class EventsPage implements OnInit {
}
async openEventDetail1(id: any) {
// console.log(id);
//
const modal = await this.modalController.create({
component: EventDetailPage,
@@ -474,7 +473,7 @@ export class EventsPage implements OnInit {
LoadList() {
this.processes.GetTaskListExpediente(false).subscribe(result => {
// console.log("Expediente", result);
//
this.addProcessToDb(result);
const ExpedienteTask = result.map(e => this.expedienteTaskPipe.transform(e))
@@ -485,7 +484,7 @@ export class EventsPage implements OnInit {
}, ((error) => {
this.showLoader = false;
// console.log('Getlist error', error)
//
this.getEventsFromLocalDb();
}));
}