mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Remove notification foreground
This commit is contained in:
@@ -165,6 +165,16 @@ export class NotificationsService {
|
||||
|
||||
}
|
||||
|
||||
removeDepartment(index): void {
|
||||
/* this.DataArray[this.DataArray.findIndex(item => item.index == index)];
|
||||
this.DataArray.splice( this.DataArray.findIndex(item => item.indexOf(index.to) === 'William'),1); */
|
||||
const indexx = this.DataArray.indexOf(index, 0);
|
||||
if (indexx > -1) {
|
||||
this.DataArray.splice(index, 1);
|
||||
console.log('This notificatio', this.DataArray);
|
||||
}
|
||||
}
|
||||
|
||||
async onReceviNotification() {
|
||||
|
||||
if(window['WLAuthorizationManager']) {
|
||||
@@ -185,6 +195,7 @@ export class NotificationsService {
|
||||
var notificationReceived = (message) => {
|
||||
//this.jsonstore.createCollection('Notifications',message);
|
||||
this.DataArray.push(message)
|
||||
console.log("On ReceiveNotification", message)
|
||||
this.storageService.store("Notifications",JSON.stringify(this.DataArray))
|
||||
|
||||
console.log(message);
|
||||
@@ -196,7 +207,9 @@ export class NotificationsService {
|
||||
if(message.actionName){
|
||||
this.notificatinsRoutes(data);
|
||||
} else {
|
||||
this.toastService.notificationMessage(message.alert,this.notificatinsRoutes, data);
|
||||
/* this.toastService.notificationMessage(message.alert,this.notificatinsRoutes, data); */
|
||||
//this.notificatinsRoutes(data);
|
||||
console.log(data)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user