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
e9cc5ff7
Commit
e9cc5ff7
authored
Sep 26, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Highlight current active coin
parent
b7bc79ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
sidebar.component.html
Breeze.UI/src/app/wallet/sidebar/sidebar.component.html
+2
-2
sidebar.component.ts
Breeze.UI/src/app/wallet/sidebar/sidebar.component.ts
+12
-0
No files found.
Breeze.UI/src/app/wallet/sidebar/sidebar.component.html
View file @
e9cc5ff7
...
...
@@ -2,11 +2,11 @@
<aside
id=
"sidebar"
>
<!-- menu-->
<ul
class=
"list-unstyled menu"
>
<li
class=
"active"
(
click
)="
loadBitcoinWallet
()
"
>
<li
(
click
)="
loadBitcoinWallet
()"
[
class
.
active
]="
bitcoinActive
"
>
<img
src=
"../../../assets/images/ico_bitcoin.svg"
alt=
"Bitcoin"
>
<span
class=
"bar"
></span>
</li>
<li
(
click
)="
loadStratisWallet
()"
>
<li
(
click
)="
loadStratisWallet
()"
[
class
.
active
]="!
bitcoinActive
"
>
<img
src=
"../../../assets/images/ico_stratis.svg"
alt=
"Stratis"
>
<span
class=
"bar"
></span>
</li>
...
...
Breeze.UI/src/app/wallet/sidebar/sidebar.component.ts
View file @
e9cc5ff7
...
...
@@ -13,20 +13,32 @@ import { GlobalService } from '../../shared/services/global.service';
export
class
SidebarComponent
implements
OnInit
{
constructor
(
private
globalService
:
GlobalService
,
private
router
:
Router
,
private
modalService
:
NgbModal
)
{
}
private
bitcoinActive
:
Boolean
;
ngOnInit
()
{
if
(
this
.
globalService
.
getCoinName
()
===
"Bitcoin"
)
{
this
.
bitcoinActive
=
true
;
}
else
if
(
this
.
globalService
.
getCoinName
()
===
"Stratis"
)
{
this
.
bitcoinActive
=
false
;
}
}
private
loadBitcoinWallet
()
{
this
.
toggleClass
();
this
.
globalService
.
setCoinName
(
"Bitcoin"
);
this
.
router
.
navigate
([
'/wallet'
]);
}
private
loadStratisWallet
()
{
this
.
toggleClass
();
this
.
globalService
.
setCoinName
(
"Stratis"
);
this
.
router
.
navigate
([
'/wallet/stratis-wallet'
]);
}
private
toggleClass
(){
this
.
bitcoinActive
=
!
this
.
bitcoinActive
;
}
private
logOut
()
{
const
modalRef
=
this
.
modalService
.
open
(
LogoutConfirmationComponent
);
}
...
...
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