Merge pull request #6679 from JDonadio/ref/wiki-spending-password

fix method name - add spending password external link
This commit is contained in:
Gustavo Maximiliano Cortez 2017-08-31 18:25:09 -03:00 committed by GitHub
commit 9602fb9bb6
5 changed files with 19 additions and 5 deletions

View file

@ -66,7 +66,7 @@ angular.module('copayApp.controllers').controller('advancedSettingsController',
});
};
$scope.learnMore = function() {
$scope.openBitcoinCashWeb = function() {
var url = 'https://www.bitcoincash.org/';
var optIn = true;
var title = null;

View file

@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('preferencesController',
function($scope, $rootScope, $timeout, $log, $ionicHistory, configService, profileService, fingerprintService, walletService, platformInfo) {
function($scope, $rootScope, $timeout, $log, $ionicHistory, configService, profileService, fingerprintService, walletService, platformInfo, externalLinkService, gettextCatalog) {
var wallet;
var walletId;
@ -58,6 +58,16 @@ angular.module('copayApp.controllers').controller('preferencesController',
}
};
$scope.openWikiSpendingPassword = function() {
var url = 'https://github.com/bitpay/copay/wiki/COPAY---FAQ#what-the-spending-password-does';
var optIn = true;
var title = null;
var message = gettextCatalog.getString('Read more in our Wiki');
var okText = gettextCatalog.getString('Open');
var cancelText = gettextCatalog.getString('Go Back');
externalLinkService.open(url, optIn, title, message, okText, cancelText);
};
$scope.touchIdChange = function() {
var newStatus = $scope.touchIdEnabled.value;
walletService.setTouchId(wallet, !!newStatus, function(err) {

View file

@ -34,6 +34,9 @@
width: 20px;
}
}
a {
cursor: pointer;
}
}
&-explanation, &-button-group {
padding: 0 1rem;