Ref ionicPopup. Clear amount view after send

This commit is contained in:
Gustavo Maximiliano Cortez 2016-09-27 16:01:15 -03:00
commit 01d5ba8d9f
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
10 changed files with 22 additions and 48 deletions

View file

@ -60,6 +60,8 @@ angular.module('copayApp.controllers').controller('amountController', function($
satToBtc = 1 / 100000000;
unitDecimals = config.unitDecimals;
$scope.resetAmount();
// in SAT ALWAYS
if ($stateParams.toAmount) {
$scope.amount = (($stateParams.toAmount) * satToUnit).toFixed(unitDecimals);