send flow

This commit is contained in:
Javier 2016-08-12 12:44:16 -03:00
commit f3dd69b510
197 changed files with 205673 additions and 8 deletions

View file

@ -160,8 +160,11 @@ angular.module('copayApp.controllers').controller('inputAmountController', funct
$ionicScrollDelegate.resize();
}, 100);
} else {
self.setAmount(amount, $scope.showAlternativeAmount);
$scope.cancel();
// self.setAmount(amount, $scope.showAlternativeAmount);
// $scope.cancel();
$scope.sending = true;
$scope.sendingAmount = profileService.formatAmount(amount * unitToSatoshi, true);
$scope.sendingAlternativeAmount = $filter('formatFiatAmount')(alternativeAmount);
}
};

View file

@ -0,0 +1,24 @@
'use strict';
angular.module('copayApp.controllers').controller('tabSendController', function($scope, $ionicModal) {
$scope.openInputAmountModal = function(addr) {
$ionicModal.fromTemplateUrl('views/modals/inputAmount.html', {
scope: $scope
}).then(function(modal) {
$scope.inputAmountModal = modal;
$scope.inputAmountModal.show();
});
};
$scope.options = {
loop: false,
effect: 'fade',
speed: 500,
};
$scope.$on("$ionicSlides.slideChangeEnd", function(event, data) {
// note: the indexes are 0-based
console.log('CHANGEDD');
});
});