/**
* @file Bread Crumb component.
*/
-import { isNullOrUndefined } from 'util';
import { Component, Injector, OnInit } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { ActivatedRoute, NavigationEnd, Router, RouterEvent, UrlSegment } from '@angular/router';
import { TranslateService } from '@ngx-translate/core';
import { BREADCRUMBITEM } from 'CommonModel';
import { filter, startWith } from 'rxjs/operators';
+import { isNullOrUndefined } from 'SharedService';
/**
* Creating component
if (!isNullOrUndefined(item.title)) {
item.title = item.title.replace('{type}', this.checkTitle(item, child.snapshot.params.type));
item.title = item.title.replace('{id}', child.snapshot.params.id);
- item.title = item.title.replace('{project}', localStorage.getItem('project'));
+ item.title = item.title.replace('{project}', sessionStorage.getItem('project'));
}
if (!isNullOrUndefined(item.url)) {
item.url = item.url.replace('{type}', child.snapshot.params.type);