add scan after create/join with mnemonics

This commit is contained in:
Matias Alejo Garcia 2015-09-02 17:11:59 -03:00
commit 142a6bd03a
6 changed files with 76 additions and 10 deletions

View file

@ -65,7 +65,7 @@ angular.module('copayApp.controllers').controller('importController',
self.loading = true;
$timeout(function() {
profileService.importWalletMnemonic(words, opts, function(err, ret) {
profileService.importWalletMnemonic(words, opts, function(err, walletId) {
self.loading = false;
if (err) {
self.error = err;
@ -73,7 +73,6 @@ angular.module('copayApp.controllers').controller('importController',
$scope.$apply();
});
}
return
$rootScope.$emit('Local/WalletImported', walletId);
notification.success(gettext('Success'), gettext('Your wallet has been imported correctly'));
go.walletHome();