ref enable bch text - fix open external link

This commit is contained in:
JDonadio 2017-08-30 17:32:11 -03:00 committed by Gustavo Maximiliano Cortez
commit c38eb4b54c
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
2 changed files with 11 additions and 5 deletions

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.controllers').controller('advancedSettingsController', function($scope, $log, configService, platformInfo, externalLinkService) {
angular.module('copayApp.controllers').controller('advancedSettingsController', function($scope, $log, configService, platformInfo, externalLinkService, gettextCatalog) {
var updateConfig = function() {
var config = configService.getSync();
@ -66,8 +66,14 @@ angular.module('copayApp.controllers').controller('advancedSettingsController',
});
};
$scope.openExternalLink = function(url) {
externalLinkService.open(url);
$scope.learnMore = function() {
var url = 'https://www.bitcoincash.org/';
var optIn = true;
var title = null;
var message = gettextCatalog.getString('Open bitcoincash.org?');
var okText = gettextCatalog.getString('Open');
var cancelText = gettextCatalog.getString('Go Back');
externalLinkService.open(url, optIn, title, message, okText, cancelText);
};
$scope.$on("$ionicView.beforeEnter", function(event, data) {

View file

@ -12,8 +12,8 @@
<span class="toggle-label" translate>Support Bitcoin Cash</span>
</ion-toggle>
<div class="comment" translate>
Enable Bitcoin Cash wallet creation and operation within the App. Learn more about Bitcoin Cash at
<a ng-click="openExternalLink('https://www.bitcoincash.org/')">its main website</a>
Enable Bitcoin Cash wallet creation and operation within the App.
<a ng-click="learnMore()">Learn more</a>
</div>