Push notificatins route bug fix

This commit is contained in:
Eudes Inácio
2021-02-04 09:01:58 +01:00
parent 71bc6f9dcc
commit 1942c2e7ff
190 changed files with 401 additions and 15726 deletions
+12 -16
View File
@@ -83,14 +83,20 @@ export class HomePage implements OnInit {
'pushNotificationActionPerformed',
(notification: PushNotificationActionPerformed) => {
let service = notification.notification.data.service;
let object = notification.notification.data.object;
let idObject = notification.notification.data.idObject;
let folder = notification.notification.data.folder;
let publicationId = notification.notification.data.publicationId;
let processId = notification.notification.data.processId;
console.log('FOLDER PROCESS', folder.ProcessId)
console.log('Service: ', service);
console.log('Object: ', object);
console.log('idObject: ', idObject);
/* if (service === "events") {
this.router.navigate(['/home/', service, idObject, 'home']);
} else if (service === "agenda") {
this.router.navigate(['/home/', service, idObject, 'home']);
} else if (service === "gabinete-digital" && object != "expediente") {*/
// this.router.navigate(['/home/', service]);
// }
//if (service != null) {
@@ -105,17 +111,7 @@ export class HomePage implements OnInit {
} else if (service === "accoes" && object === "publicacao") {
this.viewPublicationDetail(idObject)
}
/*} else {
if (processId || publicationId != null) {
this.viewPublicationDetail(idObject)
}
if (notification.notification.data.folder.ProcessId != null) {
this.viewPublications(idObject)
}
}*/