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
d550e128
Commit
d550e128
authored
7 years ago
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add transaction fee to send confirmation
parent
5deb9d0f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
send-confirmation.component.html
...t/send/send-confirmation/send-confirmation.component.html
+4
-0
send-confirmation.component.ts
...let/send/send-confirmation/send-confirmation.component.ts
+5
-0
No files found.
Breeze.UI/src/app/wallet/send/send-confirmation/send-confirmation.component.html
View file @
d550e128
...
...
@@ -20,6 +20,10 @@
<li
class=
"list-inline-item col blockLabel"
>
Amount
</li>
<li
class=
"list-inline-item col-9 blockText text-danger"
>
-{{ transaction.amount | number:'1.8-8' }} {{ coinUnit }}
</li>
</ul>
<ul
class=
"list-inline row"
>
<li
class=
"list-inline-item col blockLabel"
>
Fee
</li>
<li
class=
"list-inline-item col-9 blockText text-danger"
>
-{{ transactionFee }} {{ coinUnit }}
</li>
</ul>
<ul
class=
"list-inline row"
>
<li
class=
"list-inline-item col blockLabel"
>
Destination
</li>
<li
class=
"list-inline-item col blockText mt-2"
><code>
{{ transaction.destinationAddress }}
</code></li>
...
...
This diff is collapsed.
Click to expand it.
Breeze.UI/src/app/wallet/send/send-confirmation/send-confirmation.component.ts
View file @
d550e128
...
...
@@ -4,6 +4,8 @@ import { NgbModal, NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import
{
GlobalService
}
from
'../../../shared/services/global.service'
;
import
{
CoinNotationPipe
}
from
'../../../shared/pipes/coin-notation.pipe'
;
@
Component
({
selector
:
'app-send-confirmation'
,
templateUrl
:
'./send-confirmation.component.html'
,
...
...
@@ -12,6 +14,7 @@ import { GlobalService } from '../../../shared/services/global.service';
export
class
SendConfirmationComponent
implements
OnInit
{
@
Input
()
transaction
:
any
;
@
Input
()
transactionFee
:
any
;
constructor
(
private
globalService
:
GlobalService
,
public
activeModal
:
NgbActiveModal
)
{
}
public
showDetails
:
boolean
=
false
;
...
...
@@ -19,6 +22,8 @@ export class SendConfirmationComponent implements OnInit {
ngOnInit
()
{
this
.
coinUnit
=
this
.
globalService
.
getCoinUnit
();
this
.
transactionFee
=
new
CoinNotationPipe
(
this
.
globalService
).
transform
(
this
.
transactionFee
);
this
.
transaction
.
amount
=
+
this
.
transaction
.
amount
+
+
this
.
transactionFee
;
}
toggleDetails
()
{
...
...
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