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
c4c8e131
Commit
c4c8e131
authored
7 years ago
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show balance in dashboard
parent
34dcb8ff
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
login.component.ts
Breeze.UI/src/app/login/login.component.ts
+1
-1
api.service.ts
Breeze.UI/src/app/shared/services/api.service.ts
+1
-0
dashboard.component.ts
Breeze.UI/src/app/wallet/menu/dashboard.component.ts
+2
-2
receive.component.ts
Breeze.UI/src/app/wallet/receive/receive.component.ts
+4
-4
No files found.
Breeze.UI/src/app/login/login.component.ts
View file @
c4c8e131
...
...
@@ -86,7 +86,7 @@ export class LoginComponent implements OnInit {
if
(
response
.
status
>=
200
&&
response
.
status
<
400
)
{
let
responseMessage
=
response
.
json
();
this
.
globalService
.
setWalletName
(
walletLoad
.
name
)
this
.
globalService
.
setCoinType
(
1
);
this
.
globalService
.
setCoinType
(
0
);
this
.
router
.
navigate
([
'/wallet'
]);
}
},
...
...
This diff is collapsed.
Click to expand it.
Breeze.UI/src/app/shared/services/api.service.ts
View file @
c4c8e131
...
...
@@ -100,6 +100,7 @@ export class ApiService {
let
params
:
URLSearchParams
=
new
URLSearchParams
();
params
.
set
(
'walletName'
,
data
.
walletName
);
params
.
set
(
'coinType'
,
data
.
coinType
.
toString
());
params
.
set
(
'accountName'
,
"account 0"
);
//temporary
return
this
.
http
.
get
(
this
.
webApiUrl
+
'/wallet/address'
,
new
RequestOptions
({
headers
:
this
.
headers
,
search
:
params
}))
...
...
This diff is collapsed.
Click to expand it.
Breeze.UI/src/app/wallet/menu/dashboard.component.ts
View file @
c4c8e131
...
...
@@ -27,8 +27,8 @@ export class DashboardComponent {
response
=>
{
if
(
response
.
status
>=
200
&&
response
.
status
<
400
)
{
this
.
balanceResponse
=
response
.
json
();
this
.
confirmedBalance
=
this
.
balanceResponse
.
c
onfirmed
;
this
.
unconfirmedBalance
=
this
.
balanceResponse
.
u
nconfirmed
;
this
.
confirmedBalance
=
this
.
balanceResponse
.
balances
[
0
].
amountC
onfirmed
;
this
.
unconfirmedBalance
=
this
.
balanceResponse
.
balances
[
0
].
amountU
nconfirmed
;
}
},
error
=>
{
...
...
This diff is collapsed.
Click to expand it.
Breeze.UI/src/app/wallet/receive/receive.component.ts
View file @
c4c8e131
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
ApiService
}
from
'../../shared/services/api.service'
;
import
{
GlobalService
}
from
'../../shared/services/global.service'
;
import
{
WalletInfo
}
from
'../../shared/classes/wallet-info'
;
...
...
@@ -11,19 +12,18 @@ import { WalletInfo } from '../../shared/classes/wallet-info';
})
export
class
ReceiveComponent
{
constructor
(
private
apiService
:
ApiService
)
{}
constructor
(
private
apiService
:
ApiService
,
private
globalService
:
GlobalService
)
{}
private
address
:
any
;
private
errorMessage
:
string
;
private
walletInfo
:
WalletInfo
;
ngOnInit
()
{
this
.
getUnusedReceiveAddresses
();
}
private
getUnusedReceiveAddresses
()
{
this
.
walletInfo
=
new
WalletInfo
(
"Test"
,
0
,
"Test"
)
this
.
apiService
.
getUnusedReceiveAddress
(
this
.
walletInfo
)
let
walletInfo
=
new
WalletInfo
(
this
.
globalService
.
getWalletName
(),
this
.
globalService
.
getCoinType
()
)
this
.
apiService
.
getUnusedReceiveAddress
(
walletInfo
)
.
subscribe
(
response
=>
{
if
(
response
.
status
>=
200
&&
response
.
status
<
400
)
{
...
...
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