ref enable bch text - fix open external link
This commit is contained in:
parent
1bf879e08a
commit
c38eb4b54c
2 changed files with 11 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'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 updateConfig = function() {
|
||||||
var config = configService.getSync();
|
var config = configService.getSync();
|
||||||
|
|
@ -66,8 +66,14 @@ angular.module('copayApp.controllers').controller('advancedSettingsController',
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.openExternalLink = function(url) {
|
$scope.learnMore = function() {
|
||||||
externalLinkService.open(url);
|
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) {
|
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@
|
||||||
<span class="toggle-label" translate>Support Bitcoin Cash</span>
|
<span class="toggle-label" translate>Support Bitcoin Cash</span>
|
||||||
</ion-toggle>
|
</ion-toggle>
|
||||||
<div class="comment" translate>
|
<div class="comment" translate>
|
||||||
Enable Bitcoin Cash wallet creation and operation within the App. Learn more about Bitcoin Cash at
|
Enable Bitcoin Cash wallet creation and operation within the App.
|
||||||
<a ng-click="openExternalLink('https://www.bitcoincash.org/')">its main website</a>
|
<a ng-click="learnMore()">Learn more</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue