AngularJS directives to handle notification and form validation.
1) Checking enough amount at real-time when typing value. 2) Common notifications disappear after 5 seconds.
This commit is contained in:
parent
37c20b47ac
commit
014b7310f4
3 changed files with 44 additions and 9 deletions
|
|
@ -13,11 +13,6 @@ angular.module('copay.send').controller('SendController',
|
|||
return;
|
||||
}
|
||||
|
||||
if ($rootScope.availableBalance <= form.amount.$modelValue) {
|
||||
$rootScope.flashMessage = { message: 'You have not enough amount to send', type: 'error'};
|
||||
return;
|
||||
}
|
||||
|
||||
var address = form.address.$modelValue;
|
||||
var amount = (form.amount.$modelValue * 100000000).toString(); // satoshi to string
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue