Skip to content
Permalink
Browse files

adjusted for prod build

  • Loading branch information
ema14006 committed Apr 20, 2019
1 parent e134281 commit 7b377973efcda6ea50eeb30f090ac10f75e5ad79
Showing with 13 additions and 2 deletions.
  1. +2 −2 src/app/header/header.component.html
  2. +11 −0 src/app/header/header.component.ts
@@ -13,7 +13,7 @@
<a class="nav-image" id="dash-image" (click)="resetGenerator()"><img src="assets/images/home.png"
class=" d-block img-fluid py-3 pl-3" alt="Dashboard Image" height="42" width="42"></a>
</li>
<li class="nav-item" *ngIf="router.url != '/' && router.url != '/#' ">
<li class="nav-item" *ngIf="isLoggedIn()">
<a class="nav-image" id="visualize-image" (click)="resetGenAndVisualize()"><img src="assets/images/graph.jpg"
class=" d-block img-fluid py-3 pl-3" alt="Visualization Image" height="42" width="42"></a>
</li>
@@ -22,7 +22,7 @@
<form class="form-inline my-2 my-lg-0">
<a class="nav-left-image" id="logout-image" (click)="resetAndClear()"><img
src="assets/images/logout.png" class=" d-block img-fluid py-3 pl-3" alt="Logout Image"
height="42" width="42" *ngIf="router.url != '/' && router.url != '/#' "></a>
height="42" width="42" *ngIf="isLoggedIn()"></a>
</form>

</div>
@@ -23,6 +23,17 @@ export class HeaderComponent implements OnInit {
resetGenAndVisualize() {
this.resetAndRedirect('/visualize-all');
}
isLoggedIn()
{
if(this.router.url != '/' && this.router.url != '/#')
{
return true;
}
else
{
return false;
}
}

resetAndRedirect(url: string) {
this.login.getToken().then(() => {

0 comments on commit 7b37797

Please sign in to comment.
You can’t perform that action at this time.