Merge pull request #134 from Bitcoin-com/wallet/task/348
Bug - 348 - Tapping ↻ on the "Wallet Service URL" screen will change it to a wrong URL.
This commit is contained in:
commit
4319bfa82a
1 changed files with 4 additions and 4 deletions
|
|
@ -16,7 +16,7 @@ angular.module('copayApp.controllers').controller('preferencesBwsUrlController',
|
|||
};
|
||||
|
||||
$scope.resetDefaultUrl = function() {
|
||||
$scope.bwsurl.value = defaults.bws.url;
|
||||
$scope.bwsurl.value = ($scope.wallet.coin === 'btc') ? defaults.bws.url : defaults.bwscash.url;
|
||||
};
|
||||
|
||||
$scope.save = function() {
|
||||
|
|
@ -25,15 +25,15 @@ angular.module('copayApp.controllers').controller('preferencesBwsUrlController',
|
|||
switch ($scope.bwsurl.value) {
|
||||
case 'prod':
|
||||
case 'production':
|
||||
bws = 'https://bws.bitcoin.com/bws/api'
|
||||
bws = ($scope.wallet.coin === 'btc') ? defaults.bws.url : defaults.bwscash.url;
|
||||
break;
|
||||
case 'sta':
|
||||
case 'staging':
|
||||
bws = 'https://bws-staging.b-pay.net/bws/api'
|
||||
bws = 'https://bws-staging.b-pay.net/bws/api';
|
||||
break;
|
||||
case 'loc':
|
||||
case 'local':
|
||||
bws = 'http://localhost:3232/bws/api'
|
||||
bws = 'http://localhost:3232/bws/api';
|
||||
break;
|
||||
};
|
||||
if (bws) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue