diff --git a/src/js/controllers/advancedSettings.js b/src/js/controllers/advancedSettings.js index b9bf65449..94f9a2553 100644 --- a/src/js/controllers/advancedSettings.js +++ b/src/js/controllers/advancedSettings.js @@ -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; diff --git a/src/js/controllers/preferences.js b/src/js/controllers/preferences.js index ef95c00db..7b8d8ebe3 100644 --- a/src/js/controllers/preferences.js +++ b/src/js/controllers/preferences.js @@ -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) { diff --git a/src/sass/views/tab-settings.scss b/src/sass/views/tab-settings.scss index dcd2cfb6a..7008a96fc 100644 --- a/src/sass/views/tab-settings.scss +++ b/src/sass/views/tab-settings.scss @@ -34,6 +34,9 @@ width: 20px; } } + a { + cursor: pointer; + } } &-explanation, &-button-group { padding: 0 1rem; diff --git a/www/views/advancedSettings.html b/www/views/advancedSettings.html index 85dcaf0d4..89aa08be8 100644 --- a/www/views/advancedSettings.html +++ b/www/views/advancedSettings.html @@ -13,7 +13,7 @@