Select last focus wallet

This commit is contained in:
Matias Pando 2014-11-14 10:41:05 -03:00
commit d107dd129c

View file

@ -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);
} }
}); });
}; };