mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
Code refactoring
This commit is contained in:
@@ -69,9 +69,12 @@ export class ProfilePage implements OnInit {
|
||||
this.storageservice.get("Notifications").then((value) => {
|
||||
console.log("Init get store", value)
|
||||
|
||||
var data = JSON.parse(value);
|
||||
console.log("Init store parse", data)
|
||||
data.forEach((element,i) => {
|
||||
/* var data = JSON.parse(value); */
|
||||
console.log("Init store parse", value)
|
||||
if(typeof(value) == 'string') {
|
||||
value = JSON.stringify(value)
|
||||
}
|
||||
value.forEach((element,i) => {
|
||||
console.log("ARaaAA", element)
|
||||
let notificationObject;
|
||||
if(element.payload){
|
||||
@@ -121,17 +124,6 @@ export class ProfilePage implements OnInit {
|
||||
console.log('Timer badge count')
|
||||
}
|
||||
|
||||
typeAgendaColor(service,typeagenda,role){
|
||||
if (service == "agenda" && typeagenda == "oficial" && role == "100000011"){
|
||||
document.body.style.setProperty(`--notificationtypeagenda`, "#ffb703");
|
||||
} else if( service == "agenda" && typeagenda == "pessoal" && role == "100000011"){
|
||||
document.body.style.setProperty(`--notificationtypeagenda`, "#ff0303");
|
||||
} else if (service == "agenda" && typeagenda == "oficial" && role == "100000014"){
|
||||
document.body.style.setProperty(`--notificationtypeagenda`, "#03d838");
|
||||
} else if (service == "agenda" && typeagenda == "oficial" && role == "100000014"){
|
||||
document.body.style.setProperty(`--notificationtypeagenda`, "#8b0ae0");
|
||||
}
|
||||
}
|
||||
|
||||
getFormatedTime(dateString){
|
||||
var date = new Date(dateString);
|
||||
|
||||
Reference in New Issue
Block a user