Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flight-agency-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Heber Cordova
flight-agency-app
Commits
606adc58
Commit
606adc58
authored
Oct 23, 2023
by
Heber Cordova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added exit to login
parent
79566239
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
navigation-user.component.html
...components/navigation-user/navigation-user.component.html
+1
-1
navigation-user.component.ts
...d/components/navigation-user/navigation-user.component.ts
+7
-0
No files found.
src/app/shared/components/navigation-user/navigation-user.component.html
View file @
606adc58
...
@@ -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>
...
...
src/app/shared/components/navigation-user/navigation-user.component.ts
View file @
606adc58
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'
]);
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment