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
3fd6dfaf
Commit
3fd6dfaf
authored
Sep 26, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix double click behaviour
parent
5d2e3ac1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
sidebar.component.html
Breeze.UI/src/app/wallet/sidebar/sidebar.component.html
+1
-1
sidebar.component.ts
Breeze.UI/src/app/wallet/sidebar/sidebar.component.ts
+7
-6
No files found.
Breeze.UI/src/app/wallet/sidebar/sidebar.component.html
View file @
3fd6dfaf
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<img
src=
"../../../assets/images/ico_bitcoin.svg"
alt=
"Bitcoin"
>
<img
src=
"../../../assets/images/ico_bitcoin.svg"
alt=
"Bitcoin"
>
<span
class=
"bar"
></span>
<span
class=
"bar"
></span>
</li>
</li>
<li
(
click
)="
loadStratisWallet
()"
[
class
.
active
]="
!
bitcoin
Active
"
>
<li
(
click
)="
loadStratisWallet
()"
[
class
.
active
]="
stratis
Active
"
>
<img
src=
"../../../assets/images/ico_stratis.svg"
alt=
"Stratis"
>
<img
src=
"../../../assets/images/ico_stratis.svg"
alt=
"Stratis"
>
<span
class=
"bar"
></span>
<span
class=
"bar"
></span>
</li>
</li>
...
...
Breeze.UI/src/app/wallet/sidebar/sidebar.component.ts
View file @
3fd6dfaf
...
@@ -14,33 +14,34 @@ export class SidebarComponent implements OnInit {
...
@@ -14,33 +14,34 @@ export class SidebarComponent implements OnInit {
constructor
(
private
globalService
:
GlobalService
,
private
router
:
Router
,
private
modalService
:
NgbModal
)
{
}
constructor
(
private
globalService
:
GlobalService
,
private
router
:
Router
,
private
modalService
:
NgbModal
)
{
}
private
bitcoinActive
:
Boolean
;
private
bitcoinActive
:
Boolean
;
private
stratisActive
:
Boolean
;
ngOnInit
()
{
ngOnInit
()
{
if
(
this
.
globalService
.
getCoinName
()
===
"Bitcoin"
||
this
.
globalService
.
getCoinName
()
===
"TestBitcoin"
)
{
if
(
this
.
globalService
.
getCoinName
()
===
"Bitcoin"
||
this
.
globalService
.
getCoinName
()
===
"TestBitcoin"
)
{
this
.
bitcoinActive
=
true
;
this
.
bitcoinActive
=
true
;
this
.
stratisActive
=
false
;
}
else
if
(
this
.
globalService
.
getCoinName
()
===
"Stratis"
||
this
.
globalService
.
getCoinName
()
===
"TestStratis"
)
{
}
else
if
(
this
.
globalService
.
getCoinName
()
===
"Stratis"
||
this
.
globalService
.
getCoinName
()
===
"TestStratis"
)
{
this
.
bitcoinActive
=
false
;
this
.
bitcoinActive
=
false
;
this
.
stratisActive
=
true
;
}
}
}
}
private
loadBitcoinWallet
()
{
private
loadBitcoinWallet
()
{
this
.
toggleClass
();
this
.
bitcoinActive
=
true
;
this
.
stratisActive
=
false
;
this
.
globalService
.
setCoinName
(
"TestBitcoin"
);
this
.
globalService
.
setCoinName
(
"TestBitcoin"
);
this
.
globalService
.
setCoinUnit
(
"TBTC"
);
this
.
globalService
.
setCoinUnit
(
"TBTC"
);
this
.
router
.
navigate
([
'/wallet'
]);
this
.
router
.
navigate
([
'/wallet'
]);
}
}
private
loadStratisWallet
()
{
private
loadStratisWallet
()
{
this
.
toggleClass
();
this
.
bitcoinActive
=
false
;
this
.
stratisActive
=
true
;
this
.
globalService
.
setCoinName
(
"TestStratis"
);
this
.
globalService
.
setCoinName
(
"TestStratis"
);
this
.
globalService
.
setCoinUnit
(
"TSTRAT"
);
this
.
globalService
.
setCoinUnit
(
"TSTRAT"
);
this
.
router
.
navigate
([
'/wallet/stratis-wallet'
]);
this
.
router
.
navigate
([
'/wallet/stratis-wallet'
]);
}
}
private
toggleClass
(){
this
.
bitcoinActive
=
!
this
.
bitcoinActive
;
}
private
logOut
()
{
private
logOut
()
{
const
modalRef
=
this
.
modalService
.
open
(
LogoutConfirmationComponent
);
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