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
34dcb8ff
Commit
34dcb8ff
authored
May 09, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
History component to real API data
parent
4b6fbd86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
history.component.ts
Breeze.UI/src/app/wallet/history/history.component.ts
+8
-4
No files found.
Breeze.UI/src/app/wallet/history/history.component.ts
View file @
34dcb8ff
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
ApiService
}
from
'../../shared/services/api.service'
import
{
ApiService
}
from
'../../shared/services/api.service'
;
import
{
GlobalService
}
from
'../../shared/services/global.service'
;
import
{
WalletInfo
}
from
'../../shared/classes/wallet-info'
;
@
Component
({
selector
:
'history-component'
,
...
...
@@ -9,7 +12,7 @@ import { ApiService } from '../../shared/services/api.service'
})
export
class
HistoryComponent
{
constructor
(
private
apiService
:
ApiService
)
{}
constructor
(
private
apiService
:
ApiService
,
private
globalService
:
GlobalService
)
{}
private
transactions
:
any
;
private
errorMessage
:
string
;
...
...
@@ -19,11 +22,12 @@ export class HistoryComponent {
}
private
getWalletHistory
()
{
this
.
apiService
.
getWalletHistory
()
let
walletInfo
=
new
WalletInfo
(
this
.
globalService
.
getWalletName
(),
this
.
globalService
.
getCoinType
())
this
.
apiService
.
getWalletHistory
(
walletInfo
)
.
subscribe
(
response
=>
{
if
(
response
.
status
>=
200
&&
response
.
status
<
400
)
{
this
.
transactions
=
response
.
json
().
history
;
this
.
transactions
=
response
.
json
().
transactions
;
}
},
error
=>
{
...
...
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