homogenized switch alternative amount

This commit is contained in:
Javier 2016-07-18 11:28:03 -03:00
commit 838038a92e
5 changed files with 64 additions and 81 deletions

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.controllers').controller('send2Controller', function($scope, lodash, configService, go, rateService) {
angular.module('copayApp.controllers').controller('amountInputController', function($scope, lodash, configService, go, rateService) {
var unitToSatoshi;
var satToUnit;
var unitDecimals;

View file

@ -29,6 +29,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
ret.isWindowsPhoneApp = platformInfo.isWP;
ret.countDown = null;
ret.sendMaxInfo = {};
ret.showAlternative = false;
var vanillaScope = ret;
var disableScannerListener = $rootScope.$on('dataScanned', function(event, data) {
@ -232,18 +233,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
// Send
this.canShowAlternative = function() {
return $scope.showAlternative;
};
this.showAlternative = function() {
$scope.showAlternative = true;
};
this.hideAlternative = function() {
$scope.showAlternative = false;
};
this.resetError = function() {
this.error = this.success = null;
};