diff --git a/src/components/main/secondPass.pug b/src/components/main/secondPass.pug index 67cb35fc7..4436d5c48 100644 --- a/src/components/main/secondPass.pug +++ b/src/components/main/secondPass.pug @@ -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') diff --git a/src/components/passphrase/passphrase.js b/src/components/passphrase/passphrase.js index 83823d346..bc010699c 100644 --- a/src/components/passphrase/passphrase.js +++ b/src/components/passphrase/passphrase.js @@ -30,6 +30,8 @@ app.directive('passphrase', ($rootScope, $document, Passphrase, dialog, $mdMedia dialog.modal('save-passphrase', { passphrase, label, + fee : attrs.fee, + fee: attrs.fee, 'on-save': scope.onSave, }).then(() => { $timeout(() => { diff --git a/src/components/passphrase/savePassphrase.js b/src/components/passphrase/savePassphrase.js index 677b2dada..de0e6c64d 100644 --- a/src/components/passphrase/savePassphrase.js +++ b/src/components/passphrase/savePassphrase.js @@ -5,6 +5,7 @@ app.component('savePassphrase', { bindings: { passphrase: '<', label: '<', + fee: '<', onSave: '=', }, controller: class savePassphrase { diff --git a/src/components/passphrase/savePassphrase.pug b/src/components/passphrase/savePassphrase.pug index 5173df69e..0bc0709d8 100644 --- a/src/components/passphrase/savePassphrase.pug +++ b/src/components/passphrase/savePassphrase.pug @@ -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)