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
9dc6941a
Commit
9dc6941a
authored
8 years ago
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add transaction history
parent
f4030dc4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
5 deletions
+35
-5
history.component.html
Breeze.UI/src/app/wallet/history/history.component.html
+15
-1
history.component.ts
Breeze.UI/src/app/wallet/history/history.component.ts
+20
-2
dashboard.component.ts
Breeze.UI/src/app/wallet/menu/dashboard.component.ts
+0
-2
No files found.
Breeze.UI/src/app/wallet/history/history.component.html
View file @
9dc6941a
<h1>
History
</h1>
<h1>
History
</h1>
\ No newline at end of file
<table
*
ngIf=
"transactions"
>
<thead>
<th>
Timestamp
</th>
<th>
Amount
</th>
<th>
Confirmed
</th>
<th>
Transaction ID
</th>
</thead>
<tr
*
ngFor=
"let transaction of transactions"
>
<td>
{{ transaction.timestamp }}
</td>
<td>
{{ transaction.amount }}
</td>
<td>
{{ transaction.confirmed }}
</td>
<td>
{{ transaction.txid }}
</td>
</tr>
</table>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Breeze.UI/src/app/wallet/history/history.component.ts
View file @
9dc6941a
import
{
Component
}
from
'@angular/core'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
ApiService
}
from
'../../shared/api/api.service'
@
Component
({
@
Component
({
selector
:
'history-component'
,
selector
:
'history-component'
,
...
@@ -7,5 +9,21 @@ import { Component } from '@angular/core';
...
@@ -7,5 +9,21 @@ import { Component } from '@angular/core';
})
})
export
class
HistoryComponent
{
export
class
HistoryComponent
{
constructor
(
private
apiService
:
ApiService
)
{}
private
transactions
:
any
;
private
errorMessage
:
string
;
ngOnInit
()
{
this
.
getWalletHistory
();
}
private
getWalletHistory
()
{
this
.
apiService
.
getWalletHistory
()
.
subscribe
(
response
=>
this
.
transactions
=
response
.
history
,
error
=>
this
.
errorMessage
=
<
any
>
error
,
()
=>
console
.
log
(
this
.
transactions
)
);
}
}
}
This diff is collapsed.
Click to expand it.
Breeze.UI/src/app/wallet/menu/dashboard.component.ts
View file @
9dc6941a
...
@@ -25,8 +25,6 @@ export class DashboardComponent {
...
@@ -25,8 +25,6 @@ export class DashboardComponent {
error
=>
this
.
errorMessage
=
<
any
>
error
,
error
=>
this
.
errorMessage
=
<
any
>
error
,
()
=>
this
.
setBalance
()
()
=>
this
.
setBalance
()
);
);
}
}
private
setBalance
()
{
private
setBalance
()
{
...
...
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