Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
dd6bd0d1
Commit
dd6bd0d1
authored
8 years ago
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add logout
parent
15b10383
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
menu.component.html
Breeze.UI/src/app/wallet/menu/menu.component.html
+1
-0
menu.component.ts
Breeze.UI/src/app/wallet/menu/menu.component.ts
+5
-0
No files found.
Breeze.UI/src/app/wallet/menu/menu.component.html
View file @
dd6bd0d1
...
...
@@ -6,6 +6,7 @@
<li
class=
"nav-item"
><a
class=
"nav-link"
routerLink=
"send"
>
Send
</a></li>
<li
class=
"nav-item"
><a
class=
"nav-link"
routerLink=
"receive"
>
Receive
</a></li>
<li
class=
"nav-item"
><a
class=
"nav-link"
routerLink=
"history"
>
History
</a></li>
<li
class=
"nav-item"
><a
class=
"nav-link"
(
click
)="
logOut
()"
>
Logout
</a></li>
</ul>
</div>
</nav>
This diff is collapsed.
Click to expand it.
Breeze.UI/src/app/wallet/menu/menu.component.ts
View file @
dd6bd0d1
import
{
Component
}
from
'@angular/core'
;
import
{
Router
}
from
'@angular/router'
;
@
Component
({
selector
:
'app-menu'
,
...
...
@@ -6,5 +7,9 @@ import { Component } from '@angular/core';
styleUrls
:
[
'./menu.component.css'
],
})
export
class
MenuComponent
{
constructor
(
private
router
:
Router
)
{}
private
logOut
()
{
this
.
router
.
navigate
([
'/login'
]);
}
}
This diff is collapsed.
Click to expand it.
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