Merge pull request #5377 from gabrielbazan7/fix/scannerAddbook
fix addressbook add scanner and some refactors
This commit is contained in:
commit
9fffc255b0
6 changed files with 5 additions and 13 deletions
|
|
@ -10,7 +10,7 @@ angular.module('copayApp.controllers').controller('addressbookAddController', fu
|
|||
'email': ''
|
||||
};
|
||||
|
||||
$scope.onQrCodeScanned = function(data, addressbookForm) {
|
||||
$scope.onQrCodeScannedAddressBook = function(data, addressbookForm) {
|
||||
$timeout(function() {
|
||||
var form = addressbookForm;
|
||||
if (data && form) {
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ angular.module('copayApp.controllers').controller('joinController',
|
|||
}
|
||||
};
|
||||
|
||||
this.onQrCodeScanned = function(data) {
|
||||
this.onQrCodeScannedJoin = function(data) {
|
||||
$scope.secret = data;
|
||||
if ($scope.joinForm) {
|
||||
$scope.joinForm.secret.$setViewValue(data);
|
||||
|
|
@ -44,7 +44,7 @@ angular.module('copayApp.controllers').controller('joinController',
|
|||
if ($stateParams.url) {
|
||||
var data = $stateParams.url;
|
||||
data = data.replace('copay:', '');
|
||||
this.onQrCodeScanned(data);
|
||||
this.onQrCodeScannedJoin(data);
|
||||
}
|
||||
|
||||
var updateSeedSourceSelect = function() {
|
||||
|
|
|
|||
|
|
@ -8,13 +8,6 @@ angular.module('copayApp.controllers').controller('welcomeController', function(
|
|||
startupService.ready();
|
||||
});
|
||||
|
||||
$scope.goImport = function(code) {
|
||||
$state.go('onboarding.import', {
|
||||
fromOnboarding: true,
|
||||
code: code
|
||||
});
|
||||
};
|
||||
|
||||
$scope.createProfile = function() {
|
||||
$log.debug('Creating profile');
|
||||
profileService.createProfile(function(err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue