Fix importing partial backup
This commit is contained in:
parent
cadd66812b
commit
774f9e4def
2 changed files with 7 additions and 1 deletions
|
|
@ -89,8 +89,8 @@ angular.module('copayApp.controllers').controller('HeaderController',
|
||||||
|
|
||||||
$scope.backup = function() {
|
$scope.backup = function() {
|
||||||
var w = $rootScope.wallet;
|
var w = $rootScope.wallet;
|
||||||
backupService.download(w);
|
|
||||||
w.setBackupReady();
|
w.setBackupReady();
|
||||||
|
backupService.download(w);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.getVideoURL = function(copayer) {
|
$scope.getVideoURL = function(copayer) {
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,12 @@ angular.module('copayApp.controllers').controller('ImportController',
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!w.isReady()) {
|
||||||
|
$rootScope.wallet = w;
|
||||||
|
controllerUtils.startNetwork($rootScope.wallet, $scope);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
w.updateIndexes(function(err) {
|
w.updateIndexes(function(err) {
|
||||||
updateStatus('Importing wallet - We are almost there...');
|
updateStatus('Importing wallet - We are almost there...');
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue