mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
save all
This commit is contained in:
@@ -202,7 +202,6 @@ export class ProfilePage implements OnInit {
|
||||
console.log(this.notificationdata)
|
||||
console.log(this.notificationdata)
|
||||
|
||||
//this.storageservice.remove("Notifications")
|
||||
this.storageservice.store("Notifications", this.notificationdata).then((store) => {
|
||||
console.log(store)
|
||||
this.storageservice.get("Notifications").then((value) => {
|
||||
@@ -220,12 +219,15 @@ export class ProfilePage implements OnInit {
|
||||
this.logoutOut == false
|
||||
|
||||
setTimeout(() => {
|
||||
// alert('logout')
|
||||
|
||||
const pathBeforeGoOut = window.location.pathname
|
||||
this.router.navigateByUrl('/auth', { replaceUrl: true });
|
||||
|
||||
setTimeout(() => {
|
||||
if(this.logoutOut == false) {
|
||||
if(this.logoutOut == false || pathBeforeGoOut == window.location.pathname) {
|
||||
window.location.pathname = '/auth'
|
||||
} else {
|
||||
console.log('refresh')
|
||||
}
|
||||
}, 500)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user