X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Flayouts%2Fheader%2FHeaderComponent.ts;fp=src%2Fapp%2Flayouts%2Fheader%2FHeaderComponent.ts;h=f90b5b643198efd2ed66bd4bb64db076aedac6a1;hb=1f334d139429b0071679ee7ea55f748ef607ffde;hp=b496ff1f1a8c48beb0af0f2b2aeb0586579a971a;hpb=c5b4782eacb966fd840b0f4e4459b7120ecd38df;p=osm%2FNG-UI.git diff --git a/src/app/layouts/header/HeaderComponent.ts b/src/app/layouts/header/HeaderComponent.ts index b496ff1..f90b5b6 100644 --- a/src/app/layouts/header/HeaderComponent.ts +++ b/src/app/layouts/header/HeaderComponent.ts @@ -85,7 +85,7 @@ export class HeaderComponent implements OnInit { /** Lifecyle Hooks the trigger before component is instantiate @public */ public ngOnInit(): void { - this.isAdmin = (localStorage.getItem('isAdmin') === 'true') ? true : false; + this.isAdmin = (sessionStorage.getItem('isAdmin') === 'true') ? true : false; this.selectedProject = this.authService.ProjectName; this.authService.ProjectName.subscribe((projectNameFinal: string): void => { this.getSelectedProject = projectNameFinal; @@ -94,7 +94,7 @@ export class HeaderComponent implements OnInit { this.projectService.setHeaderProjects(); this.projectList$ = this.projectService.projectList; this.PACKAGEVERSION = environment.packageVersion; - const getLocalStorageVersion: string = localStorage.getItem('osmVersion'); + const getLocalStorageVersion: string = sessionStorage.getItem('osmVersion'); if (getLocalStorageVersion === null) { this.showNewVersion(); } else if (getLocalStorageVersion !== this.sharedService.osmVersion) { @@ -115,7 +115,7 @@ export class HeaderComponent implements OnInit { /** Close Version and add in local storage @public */ public closeVersion(): void { this.toShowNewTag = false; - localStorage.setItem('osmVersion', this.sharedService.osmVersion); + sessionStorage.setItem('osmVersion', this.sharedService.osmVersion); } /** Implementation of model for UserSettings options.@public */