add bws url info

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

View File

@ -1,14 +1,14 @@
'use strict';
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;
var wallet = profileService.getWallet($stateParams.walletId);
var walletId = wallet.credentials.walletId;
var defaults = configService.getDefaults();
var config = configService.getSync();
$scope.appName = $window.appConfig.nameCase;
$scope.bwsurl = {
value: (config.bwsFor && config.bwsFor[walletId]) || defaults.bws.url
};

View File

@ -15,6 +15,12 @@
</a>
</label>
</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>
</ion-content>
</ion-view>