diff --git a/src/js/controllers/preferencesCash.js b/src/js/controllers/preferencesCash.js deleted file mode 100644 index eb81e0394..000000000 --- a/src/js/controllers/preferencesCash.js +++ /dev/null @@ -1,42 +0,0 @@ -'use strict'; - -angular.module('copayApp.controllers').controller('preferencesCashController', function($scope, $log, $timeout, appConfigService, configService, gettextCatalog, externalLinkService) { - var updateConfig = function() { - - var config = configService.getSync(); - $scope.appName = appConfigService.nameCase; - - $scope.cashSupport = { - value: config.cashSupport - }; - - $timeout(function() { - $scope.$apply(); - }); - }; - - $scope.cashSupportChange = function() { - var opts = { - cashSupport: $scope.cashSupport.value - }; - configService.set(opts, function(err) { - if (err) $log.debug(err); - }); - }; - - - $scope.openBitcoinCashWeb = 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) { - updateConfig(); - }); -}); diff --git a/src/js/routes.js b/src/js/routes.js index e350b390c..9a00b74db 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -377,16 +377,6 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr * */ - .state('tabs.preferencesCash', { - url: '/preferencesCash', - views: { - 'tab-settings@tabs': { - controller: 'preferencesCashController', - templateUrl: 'views/preferencesCash.html' - } - } - }) - .state('tabs.notifications', { url: '/notifications', views: { diff --git a/www/views/preferencesCash.html b/www/views/preferencesCash.html deleted file mode 100644 index 5185faa2f..000000000 --- a/www/views/preferencesCash.html +++ /dev/null @@ -1,27 +0,0 @@ - - - {{'Bitcoin Cash Support' | translate}} - - - - - -
- - Support Bitcoin Cash - -
- -
-
- Enable Bitcoin Cash wallet creation and operation within the App. - Learn more -
-
-
-
- Scan your wallets for Bitcoin Cash -
-
-
-
diff --git a/www/views/tab-settings.html b/www/views/tab-settings.html index c67fd9ac1..2c25e43b0 100644 --- a/www/views/tab-settings.html +++ b/www/views/tab-settings.html @@ -39,21 +39,6 @@
{{'Preferences' | translate}}
- - - - - - {{'Bitcoin Cash Support' | translate}} - - Enabled - Disabled - - - - - -