Import bch from file
This commit is contained in:
parent
db04a31a06
commit
5613e06e62
2 changed files with 12 additions and 0 deletions
|
|
@ -204,6 +204,7 @@ angular.module('copayApp.controllers').controller('importController',
|
||||||
if (evt.target.readyState == FileReader.DONE) { // DONE == 2
|
if (evt.target.readyState == FileReader.DONE) { // DONE == 2
|
||||||
var opts = {};
|
var opts = {};
|
||||||
opts.bwsurl = $scope.formData.bwsurl;
|
opts.bwsurl = $scope.formData.bwsurl;
|
||||||
|
opts.coin = $scope.formData.coin;
|
||||||
_importBlob(evt.target.result, opts);
|
_importBlob(evt.target.result, opts);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -229,6 +230,7 @@ angular.module('copayApp.controllers').controller('importController',
|
||||||
} else {
|
} else {
|
||||||
var opts = {};
|
var opts = {};
|
||||||
opts.bwsurl = $scope.formData.bwsurl;
|
opts.bwsurl = $scope.formData.bwsurl;
|
||||||
|
opts.coin = $scope.formData.coin;
|
||||||
_importBlob(backupText, opts);
|
_importBlob(backupText, opts);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,16 @@
|
||||||
ng-model="formData.password">
|
ng-model="formData.password">
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
<label class="item item-input item-select">
|
||||||
|
<div class="input-label" translate>
|
||||||
|
Coin
|
||||||
|
</div>
|
||||||
|
<select ng-model="formData.coin">
|
||||||
|
<option value="btc">BTC</option>
|
||||||
|
<option value="bch">BCH</option>
|
||||||
|
</select>
|
||||||
|
</label>
|
||||||
|
|
||||||
<div class="item item-divider"></div>
|
<div class="item item-divider"></div>
|
||||||
|
|
||||||
<a class="item" ng-click="showAdvChange()">
|
<a class="item" ng-click="showAdvChange()">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue