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

Fix to #1 #4

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/app/components/send/send.jade
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@ md-card.offline-hide
div(ng-message='required') Required
div(ng-message='pattern') Invalid
div(ng-message='max') Insufficient funds
md-input-container.md-block(ng-if='$ctrl.account.secondSignature')
label Second Passphrase
input(type='password', name='secondpassphrase', ng-model='$ctrl.secondpassphrase.value', required, ng-disabled='$ctrl.loading')
div(ng-messages='$ctrl.sendForm.amount.$error')
div(ng-message='required') Required
md-content(layout='row', layout-align='center center')
md-button.md-raised.md-primary(ng-disabled='!$ctrl.sendForm.$valid || $ctrl.loading', ng-click='$ctrl.go()') {{ $ctrl.loading ? 'Sending...' : 'Send' }}
5 changes: 3 additions & 2 deletions src/app/components/send/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ app.component('send', {
template: require('./send.jade')(),
bindings: {
account: '<',
passphrase: '<',
passphrase: '<'
},
controller: class send {
constructor ($scope, $peers, lsk, success, error) {
Expand Down Expand Up @@ -37,14 +37,15 @@ app.component('send', {
reset () {
this.recipient.value = ''
this.amount.value = ''
this.secondpassphrase.value = ''
}

go () {
this.loading = true

this.$peers.active.sendTransaction(
this.passphrase,
this.secondPassphrase,
this.secondpassphrase.value,
this.recipient.value,
this.amount.raw
)
Expand Down