check notification and inactivity

This commit is contained in:
Peter Maquiran
2023-09-28 09:02:15 +01:00
parent b46d179dfe
commit 8de8a35bfc
11 changed files with 93 additions and 60 deletions
+16 -10
View File
@@ -18,13 +18,13 @@ class SessionService {
permission = {
Agenda: {
access: false
access: false
},
Gabinete: {
access: false,
pr_tasks: false,
access: false,
pr_tasks: false,
md_tasks: false,
aprove_event: false
aprove_event: false
},
Actions: {
access : false,
@@ -40,12 +40,18 @@ class SessionService {
}
}
hasPassLogin = false
constructor() {
this.keyName = (SHA1("SessionService")).toString()
let restore = this.getDataFromLocalStorage()
this._user = restore.user || new UserSession()
if(this._user.LoginPreference == 'Pin') {
this._user.Inactivity = false
}
}
getDataFromLocalStorage() {
@@ -138,7 +144,7 @@ class SessionService {
if (names.length > 1) {
initials += names[names.length - 1].substring(0, 1).toUpperCase();
}
return initials;
}
@@ -149,7 +155,7 @@ class SessionService {
if (names.length > 1) {
initials += names[names.length - 1].substring(0, 1).toUpperCase();
}
return initials;
}
@@ -157,13 +163,13 @@ class SessionService {
clearPermission() {
this.permission = {
Agenda: {
access: false
access: false
},
Gabinete: {
access: false,
pr_tasks: false,
access: false,
pr_tasks: false,
md_tasks: false,
aprove_event: false
aprove_event: false
},
Actions: {
access : false,