add bws url info

This commit is contained in:
Javier 2016-12-20 12:37:40 -03:00
commit 6cb324b070
2 changed files with 8 additions and 2 deletions

View file

@ -1,14 +1,14 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('preferencesBwsUrlController', angular.module('copayApp.controllers').controller('preferencesBwsUrlController',
function($scope, $log, $stateParams, configService, applicationService, profileService, storageService) { function($scope, $log, $stateParams, configService, applicationService, profileService, storageService, $window) {
$scope.success = null; $scope.success = null;
var wallet = profileService.getWallet($stateParams.walletId); var wallet = profileService.getWallet($stateParams.walletId);
var walletId = wallet.credentials.walletId; var walletId = wallet.credentials.walletId;
var defaults = configService.getDefaults(); var defaults = configService.getDefaults();
var config = configService.getSync(); var config = configService.getSync();
$scope.appName = $window.appConfig.nameCase;
$scope.bwsurl = { $scope.bwsurl = {
value: (config.bwsFor && config.bwsFor[walletId]) || defaults.bws.url value: (config.bwsFor && config.bwsFor[walletId]) || defaults.bws.url
}; };

View file

@ -15,6 +15,12 @@
</a> </a>
</label> </label>
</div> </div>
<div class="settings-explanation">
<div class="settings-description" translate>
{{appName}} depends on Bitcore Wallet Service (BWS) for blockchain information, networking and Copayer synchronization.
The default configuration points to https://bws.bitpay.com (BitPay's public BWS instance).
</div>
</div>
<button class="button button-standard button-primary" ng-click="save()" translate>Save</button> <button class="button button-standard button-primary" ng-click="save()" translate>Save</button>
</ion-content> </ion-content>
</ion-view> </ion-view>