switch between btc and bch service url when switching coins
This commit is contained in:
parent
092a4fd71a
commit
93bb167766
4 changed files with 18 additions and 4 deletions
|
|
@ -3,8 +3,9 @@
|
|||
angular.module('copayApp.controllers').controller('joinController',
|
||||
function($scope, $rootScope, $timeout, $state, $ionicHistory, $ionicScrollDelegate, profileService, configService, storageService, applicationService, gettextCatalog, lodash, ledger, trezor, intelTEE, derivationPathHelper, ongoingProcess, walletService, $log, $stateParams, popupService, appConfigService) {
|
||||
|
||||
var defaults = configService.getDefaults();
|
||||
|
||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||
var defaults = configService.getDefaults();
|
||||
var config = configService.getSync();
|
||||
$scope.formData = {};
|
||||
$scope.formData.bwsurl = defaults.bws.url;
|
||||
|
|
@ -17,6 +18,10 @@ angular.module('copayApp.controllers').controller('joinController',
|
|||
updateSeedSourceSelect();
|
||||
});
|
||||
|
||||
$scope.coinChanged = function() {
|
||||
$scope.formData.bwsurl = $scope.formData.coin == 'btc' ? defaults.bws.url : defaults.bwscash.url;
|
||||
}
|
||||
|
||||
$scope.showAdvChange = function() {
|
||||
$scope.showAdv = !$scope.showAdv;
|
||||
$scope.encrypt = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue