move function to profileService

This commit is contained in:
Javier 2016-02-19 10:27:59 -03:00
commit d6325113d4
3 changed files with 17 additions and 16 deletions

View file

@ -250,6 +250,10 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
}
$modalInstance.close(addr);
profileService.isBackupNeeded(walletId, function(needsBackup) {
self.destinationWalletNeedsBackup = needsBackup;
$modalInstance.close(addr);
});
});
};
};