homogenized switch alternative amount
This commit is contained in:
parent
8c7c8079ba
commit
838038a92e
5 changed files with 64 additions and 81 deletions
|
|
@ -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;
|
||||
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue