Merge pull request #6712 from cmgustavo/ref/clean-code-confirm-01

Removes duplicated variables. Fix syntax
This commit is contained in:
Javier Donadío 2017-09-07 17:31:00 -03:00 committed by GitHub
commit 2e4c1d6abd

View file

@ -334,7 +334,6 @@ angular.module('copayApp.controllers').controller('confirmController', function(
} }
function setButtonText(isMultisig, isPayPro) { function setButtonText(isMultisig, isPayPro) {
$scope.buttonText = gettextCatalog.getString(isCordova && !isWindowsPhoneApp ? 'Slide' : 'Click') + ' ';
if (isPayPro) { if (isPayPro) {
if (isCordova && !isWindowsPhoneApp) { if (isCordova && !isWindowsPhoneApp) {
@ -348,11 +347,12 @@ angular.module('copayApp.controllers').controller('confirmController', function(
} else { } else {
$scope.buttonText = gettextCatalog.getString('Click to accept'); $scope.buttonText = gettextCatalog.getString('Click to accept');
} }
} else
if (isCordova && !isWindowsPhoneApp) {
$scope.buttonText = gettextCatalog.getString('Slide to send');
} else { } else {
$scope.buttonText = gettextCatalog.getString('Click to send'); if (isCordova && !isWindowsPhoneApp) {
$scope.buttonText = gettextCatalog.getString('Slide to send');
} else {
$scope.buttonText = gettextCatalog.getString('Click to send');
}
} }
}; };