mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
Delete notifications bug fix
This commit is contained in:
@@ -85,8 +85,10 @@ export class ProfilePage implements OnInit {
|
|||||||
|
|
||||||
this.DataArray = []
|
this.DataArray = []
|
||||||
value.forEach((element, i) => {
|
value.forEach((element, i) => {
|
||||||
|
let notificationObject;
|
||||||
|
if (element.data) {
|
||||||
console.log("ARaaAA", element)
|
console.log("ARaaAA", element)
|
||||||
let notificationObject = {
|
notificationObject = {
|
||||||
index: i,
|
index: i,
|
||||||
title: element.title,
|
title: element.title,
|
||||||
Service: element.data.Service,
|
Service: element.data.Service,
|
||||||
@@ -101,41 +103,23 @@ export class ProfilePage implements OnInit {
|
|||||||
Role: element.data.Role,
|
Role: element.data.Role,
|
||||||
Status: element.data.Status
|
Status: element.data.Status
|
||||||
}
|
}
|
||||||
/* if(element.payload){
|
|
||||||
var payload = JSON.parse(element.payload)
|
|
||||||
notificationObject = {
|
|
||||||
//index: i,
|
|
||||||
//alert: element.alert,
|
|
||||||
Service: payload.Service,
|
|
||||||
Object: payload.Object,
|
|
||||||
IdObject: payload.IdObject,
|
|
||||||
//FolderId: payload.FolderId,
|
|
||||||
//desc: payload.desc,
|
|
||||||
//dateInit: this.getFormatedTime(payload.dateInit),
|
|
||||||
//dateEnd: this.getFormatedTime(payload.dateEnd),
|
|
||||||
//Location: payload.Location,
|
|
||||||
//TypeAgenda: payload.TypeAgenda,
|
|
||||||
//Role: payload.Role,
|
|
||||||
//Status: payload.Status
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
notificationObject = {
|
notificationObject = {
|
||||||
index: i,
|
|
||||||
alert: element.alert,
|
|
||||||
Service: element.Service,
|
|
||||||
Object: element.Object,
|
|
||||||
IdObject: element.IdObject,
|
|
||||||
FolderId: element.FolderId,
|
FolderId: element.FolderId,
|
||||||
desc: element.desc,
|
IdObject: element.IdObject,
|
||||||
dateInit: element.dateInit,
|
|
||||||
dateEnd: element.dateEnd,
|
|
||||||
Location: element.Location,
|
Location: element.Location,
|
||||||
TypeAgenda: element.TypeAgenda,
|
Object: element.Object,
|
||||||
Role: element.Role,
|
Role: element.Role,
|
||||||
Status: element.Status
|
Service: element.Service,
|
||||||
|
Status: element.Status,
|
||||||
|
TypeAgenda: element.TypeAgenda,
|
||||||
|
body: element.body,
|
||||||
|
dateEnd: element.dateEnd,
|
||||||
|
dateInit: element.dateInit,
|
||||||
|
index: element.index,
|
||||||
|
title: element.title
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}*/
|
|
||||||
|
|
||||||
|
|
||||||
this.DataArray.push(notificationObject)
|
this.DataArray.push(notificationObject)
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user