feature/gabinete-search

This commit is contained in:
Peter Maquiran
2023-05-26 14:23:37 +01:00
parent 0b3ffa3ea7
commit b2da8463b4
56 changed files with 98 additions and 186 deletions
+3 -7
View File
@@ -57,7 +57,6 @@ export class ProfilePage implements OnInit {
if(event.notification == "recive") {
this.getNotificationData();
}
console.log(event)
});
setTimeout(() => {
@@ -150,7 +149,6 @@ export class ProfilePage implements OnInit {
notificatinsRoutes = (index, Service, Object, IdObject, FolderId) => {
// console.log(index, Service, Object, IdObject, FolderId)
if (Service === "agenda" && IdObject.length > 10) {
this.zone.run(() => this.router.navigate(['/home/agenda', IdObject, 'agenda']));
@@ -210,13 +208,11 @@ export class ProfilePage implements OnInit {
deleteNotification(index) {
this.notificationdata = this.notificationdata.filter(item => item.index != index);
console.log(this.notificationdata)
console.log(this.notificationdata)
this.storageservice.store("Notifications", this.notificationdata).then((store) => {
console.log(store)
this.storageservice.get("Notifications").then((value) => {
console.log(value)
}).catch((error) => {
console.error('storage delete notification: ',error)
})
@@ -239,7 +235,7 @@ export class ProfilePage implements OnInit {
if(this.logoutOut == false || pathBeforeGoOut == window.location.pathname) {
window.location.pathname = '/auth'
} else {
console.log('refresh')
}
}, 500)
}