Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Don't show a fee on new account registration - Closes #363
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Jun 9, 2017
1 parent 61460c5 commit 61af4bb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/main/secondPass.pug
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ div.dialog-second(aria-label='Generate a second passphrase for your account')
md-toolbar
.md-toolbar-tools
h2 Generate a second passphrase of your account
passphrase(data-on-save='onSave', data-target='second-pass', data-ok-button-label='Register')
passphrase(data-on-save='onSave', data-target='second-pass', data-ok-button-label='Register', data-fee='25')
1 change: 1 addition & 0 deletions src/components/passphrase/passphrase.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ app.directive('passphrase', ($rootScope, $document, Passphrase, dialog, $mdMedia
dialog.modal('save-passphrase', {
passphrase,
label,
fee: attrs.fee,
'on-save': scope.onSave,
}).then(() => {
$timeout(() => {
Expand Down
1 change: 1 addition & 0 deletions src/components/passphrase/savePassphrase.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ app.component('savePassphrase', {
bindings: {
passphrase: '<',
label: '<',
fee: '<',
onSave: '=',
},
controller: class savePassphrase {
Expand Down
2 changes: 1 addition & 1 deletion src/components/passphrase/savePassphrase.pug
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ form(ng-if='$ctrl.step === 2')
md-input-container.md-block(md-is-error='!$ctrl.missing_ok')
label Enter the missing word
input(ng-model='$ctrl.missing_input', md-autofocus, aria-label='Enter the missing word')
div.fee Fee: 25 LSK
div.fee(ng-if='$ctrl.fee') Fee: {{$ctrl.fee}} LSK
md-dialog-actions(layout='row')
md-button.back-button(ng-click="$ctrl.back()") Back
span(flex)
Expand Down

0 comments on commit 61af4bb

Please sign in to comment.