Commit 606adc58 authored by Heber Cordova's avatar Heber Cordova

added exit to login

parent 79566239
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<button class="btn"> <button class="btn">
<i class="bi bi-list-task"></i> <i class="bi bi-list-task"></i>
</button> </button>
<button class="btn"> <button (click)="goToLogin()" class="btn">
<i class="bi bi-box-arrow-right"></i> <i class="bi bi-box-arrow-right"></i>
</button> </button>
</div> </div>
......
import { Component, EventEmitter, Output } from '@angular/core'; import { Component, EventEmitter, Output } from '@angular/core';
import { Router } from '@angular/router';
@Component({ @Component({
selector: 'shared-navigation-user', selector: 'shared-navigation-user',
...@@ -10,7 +11,13 @@ export class NavigationUserComponent { ...@@ -10,7 +11,13 @@ export class NavigationUserComponent {
@Output() @Output()
public toggleSidebarEvent: EventEmitter<void> = new EventEmitter<void>(); public toggleSidebarEvent: EventEmitter<void> = new EventEmitter<void>();
constructor(private router: Router) { }
toggleSidebar():void { toggleSidebar():void {
this.toggleSidebarEvent.emit(); this.toggleSidebarEvent.emit();
} }
goToLogin(): void {
this.router.navigate(['/sign-in']);
}
} }
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