mirror of https://github.com/BTCPrivate/copay.git
adding reset to default url button
This commit is contained in:
parent
e715f2ecd3
commit
86fce3af42
|
@ -11,6 +11,7 @@
|
|||
<form name="settingsBwsUrlForm" ng-submit="prefBwsUrl.save()" class="columns">
|
||||
<label>Wallet Service URL</label>
|
||||
<input type="text" id="bwsurl" type="text" name="bwsurl" ng-model="prefBwsUrl.bwsurl">
|
||||
<input class="button expand black round" ng-click="prefBwsUrl.resetDefaultUrl()" value="reset to default url" translate>
|
||||
<input type="submit" class="button expand black round" value="{{'Save'|translate}}"
|
||||
ng-style="{'background-color':index.backgroundColor}">
|
||||
</form>
|
||||
|
|
|
@ -12,6 +12,10 @@ angular.module('copayApp.controllers').controller('preferencesBwsUrlController',
|
|||
|
||||
this.bwsurl = (config.bwsFor && config.bwsFor[walletId]) || defaults.bws.url;
|
||||
|
||||
this.resetDefaultUrl = function() {
|
||||
this.bwsurl = 'https://bws.bitpay.com/bws/api';
|
||||
};
|
||||
|
||||
this.save = function() {
|
||||
|
||||
var bws;
|
||||
|
|
Loading…
Reference in New Issue