Fix Conflicts:
index.html
This commit is contained in:
commit
7aebf032ef
16 changed files with 225 additions and 165 deletions
|
|
@ -6,7 +6,15 @@ angular.module('copay.import').controller('ImportController',
|
|||
var reader = new FileReader();
|
||||
var _importBackup = function(encryptedObj) {
|
||||
Passphrase.getBase64Async($scope.password, function(passphrase){
|
||||
$rootScope.wallet = walletFactory.fromEncryptedObj(encryptedObj, passphrase);
|
||||
var w = walletFactory.fromEncryptedObj(encryptedObj, passphrase);
|
||||
if (!w) {
|
||||
$scope.loading = false;
|
||||
$rootScope.$flashMessage = { message: 'Wrong password', type: 'error'};
|
||||
$rootScope.$digest();
|
||||
return;
|
||||
}
|
||||
$rootScope.wallet = w;
|
||||
|
||||
controllerUtils.startNetwork($rootScope.wallet);
|
||||
});
|
||||
};
|
||||
|
|
@ -33,6 +41,7 @@ angular.module('copay.import').controller('ImportController',
|
|||
var password = form.password.$modelValue;
|
||||
|
||||
if (!backupFile && !backupText) {
|
||||
$scope.loading = false;
|
||||
$rootScope.$flashMessage = { message: 'Please, select your backup file or paste the text', type: 'error'};
|
||||
$scope.loading = false;
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -23,17 +23,15 @@ angular.module('copay.signin').controller('SigninController',
|
|||
|
||||
console.log('## Obtaining passphrase...');
|
||||
Passphrase.getBase64Async(password, function(passphrase){
|
||||
console.log('## Done.');
|
||||
console.log('## Passphrase obtained');
|
||||
var w = walletFactory.open($scope.selectedWalletId, { passphrase: passphrase});
|
||||
if (!w) {
|
||||
$scope.loading = $scope.failure = false;
|
||||
$rootScope.$flashMessage = { message: 'Bad password or connection error', type: 'error'};
|
||||
$rootScope.$flashMessage = { message: 'Wrong password', type: 'error'};
|
||||
$rootScope.$digest();
|
||||
return;
|
||||
}
|
||||
console.log('[signin.js.49]'); //TODO
|
||||
installStartupHandlers(w);
|
||||
console.log('[signin.js.52]'); //TODO
|
||||
controllerUtils.startNetwork(w);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue