mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
feature/gabinete-search
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user