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
-12
View File
@@ -48,8 +48,6 @@ export class ProfilePage implements OnInit {
this.loggeduser = authService.ValidatedUser;
console.log(this.loggeduser.RoleDescription)
}
ngOnInit() {
@@ -82,13 +80,11 @@ export class ProfilePage implements OnInit {
async getNotificationData() {
this.storageservice.get("Notifications").then((value) => {
console.log("Init get store", value)
this.DataArray = []
value.forEach((element, i) => {
let notificationObject;
if (element.data) {
console.log("ARaaAA", element)
notificationObject = {
index: i,
title: element.title,
@@ -125,12 +121,9 @@ export class ProfilePage implements OnInit {
this.DataArray.push(notificationObject)
});
this.notificationdata = this.DataArray
console.log("Notificaaa", this.notificationdata)
})
console.log("Notificaaa", this.notificationdata)
/* await new Promise(resolve => setTimeout(resolve, 1000));
await this.getNotificationData(); */
console.log('Timer badge count')
}
@@ -140,14 +133,12 @@ export class ProfilePage implements OnInit {
var am_pm = date.getHours() >= 12 ? "pm" : "am";
var minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
let time = hours + ":" + minutes /* + " " + am_pm */;
console.log('Formate', time)
return time;
}
notificatinsRoutes = (index, Service, Object, IdObject, FolderId) => {
if (Service === "agenda" && IdObject.length > 10) {
console.log("Id Lenght", IdObject.length)
this.zone.run(() => this.router.navigate(['/home/agenda', IdObject, 'agenda']));
}
else if (Service === "gabinete-digital" && Object === "expediente") {
@@ -201,15 +192,12 @@ export class ProfilePage implements OnInit {
}
deleteNotification(index) {
console.log("Delete notification first stata", this.notificationdata)
this.notificationdata = this.notificationdata.filter(item => item.index != index);
this.storageservice.store("Notifications", JSON.stringify(this.notificationdata)).then(() => {
this.storageservice.get("Notifications").then((value) => {
console.log("notfication state", value,)
});
});
console.log("Delete notification last stata", this.notificationdata)
}