Select last focus wallet
This commit is contained in:
parent
0abb264fa6
commit
d107dd129c
1 changed files with 2 additions and 10 deletions
|
|
@ -30,16 +30,8 @@ angular.module('copayApp.controllers').controller('ImportProfileController',
|
||||||
if (err && !iden) {
|
if (err && !iden) {
|
||||||
$scope.error = (err.toString() || '').match('BADSTR') ? 'Bad password or corrupt profile file' : 'Unknown error';
|
$scope.error = (err.toString() || '').match('BADSTR') ? 'Bad password or corrupt profile file' : 'Unknown error';
|
||||||
} else {
|
} else {
|
||||||
//simulate an angular form
|
var firstWallet = iden.getLastFocusedWallet();
|
||||||
var data = {
|
controllerUtils.bindProfile($scope, iden, firstWallet);
|
||||||
email: {
|
|
||||||
$modelValue: iden.email
|
|
||||||
},
|
|
||||||
password: {
|
|
||||||
$modelValue: iden.password
|
|
||||||
}
|
|
||||||
}
|
|
||||||
identityService.open($scope, data);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue