Commit 2a22dcb2 authored by rajkumar's avatar rajkumar
Browse files

Fixing logout functionality

parent 21c85496
Pipeline #136331 passed with stages
in 4 minutes and 25 seconds
......@@ -17,7 +17,7 @@
<ul id="local-nav" class="dropdown menu float-left" data-description="navigational">
<li><a href="https://www.ebi.ac.uk/ena/browser/support">Support <i class="icon icon-generic"
data-icon="x"></i></a></li> <!-- ** Application specific content ** -->
<li *ngIf="isAuthenticated()"><a [routerLink]="['/login']">Logout
<li *ngIf="isAuthenticated()"><a [routerLink]="['/login']" (click)='logout()'>Logout
<span>({{getAccount()}})</span> <!-- ** Application specific content ** -->
</a></li>
</ul>
......
......@@ -60,6 +60,10 @@ export class SidenavComponent implements OnDestroy, AfterViewChecked {
}
}
logout() {
this._webinAuthenticationService.logout();
}
isEga(): boolean {
return this._webinAuthenticationService.ega;
}
......
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