Commit 6b7ce756 by Arjun

ts fix

parent 02813e62
...@@ -46,10 +46,6 @@ export class AppComponent { ...@@ -46,10 +46,6 @@ export class AppComponent {
sec_active5 = false; sec_active5 = false;
sec_active6 = false; sec_active6 = false;
state: boolean; state: boolean;
// Customer Info
// user: User;
menuw: number; menuw: number;
userData: any; userData: any;
tabData = true; tabData = true;
...@@ -72,9 +68,6 @@ export class AppComponent { ...@@ -72,9 +68,6 @@ export class AppComponent {
private location: Location, private location: Location,
private events: Events private events: Events
) { ) {
setInterval(() => {
console.log(window.location.href);
}, 1000);
this.state = true; this.state = true;
this.initializeApp(); this.initializeApp();
this.subjectService.getLoginData().subscribe(loginData => { this.subjectService.getLoginData().subscribe(loginData => {
...@@ -146,9 +139,7 @@ export class AppComponent { ...@@ -146,9 +139,7 @@ export class AppComponent {
'review' 'review'
]; ];
const currentUrl = this.router.url.split('/'); const currentUrl = this.router.url.split('/');
console.log(currentUrl);
const index = restrictedUrl.findIndex(x => x === currentUrl[1]); const index = restrictedUrl.findIndex(x => x === currentUrl[1]);
// console.log(currentUrl[1], index, this.state);
if (index > -1 || this.tabData === false) { if (index > -1 || this.tabData === false) {
return true; return true;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment