import { Component, Injector } from '@angular/core';
import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
import { TranslateService } from '@ngx-translate/core';
import { Component, Injector } from '@angular/core';
import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
import { TranslateService } from '@ngx-translate/core';
import { MODALCLOSERESPONSEDATA } from 'CommonModel';
import { DeleteComponent } from 'DeleteComponent';
import { ProjectRoleComponent } from 'ProjectRoleComponent';
import { MODALCLOSERESPONSEDATA } from 'CommonModel';
import { DeleteComponent } from 'DeleteComponent';
import { ProjectRoleComponent } from 'ProjectRoleComponent';
- this.isAdminShow = localStorage.getItem('admin_show') === 'true' ? true : false;
- this.isUserShow = localStorage.getItem('user_show') === 'true' ? true : false;
+ this.isAdminShow = sessionStorage.getItem('admin_show') === 'true' ? true : false;
+ this.isUserShow = sessionStorage.getItem('user_show') === 'true' ? true : false;
public unlockRenewUser(editType: string): void {
// eslint-disable-next-line security/detect-non-literal-fs-filename
const modalRef: NgbModalRef = this.modalService.open(WarningComponent, { backdrop: 'static' });
public unlockRenewUser(editType: string): void {
// eslint-disable-next-line security/detect-non-literal-fs-filename
const modalRef: NgbModalRef = this.modalService.open(WarningComponent, { backdrop: 'static' });
- localStorage.setItem('renew', 'true');
- const id: string = localStorage.getItem('user_id');
+ sessionStorage.setItem('renew', 'true');
+ const id: string = sessionStorage.getItem('user_id');
if (editType === 'unlock') {
modalRef.componentInstance.heading = this.translateService.instant('Unlock User');
modalRef.componentInstance.confirmationMessage = this.translateService.instant('Are you sure want to unlock this user');
if (editType === 'unlock') {
modalRef.componentInstance.heading = this.translateService.instant('Unlock User');
modalRef.componentInstance.confirmationMessage = this.translateService.instant('Are you sure want to unlock this user');