add warning for old wallets
This commit is contained in:
parent
b03a3f1391
commit
dd0dc9c6ad
4 changed files with 56 additions and 7 deletions
|
|
@ -2,6 +2,24 @@
|
|||
|
||||
angular.module('copayApp.controllers').controller('CreateProfileController', function($scope, $rootScope, $location, notification, controllerUtils, pluginManager) {
|
||||
controllerUtils.redirIfLogged();
|
||||
$scope.retreiving = true;
|
||||
|
||||
|
||||
copay.Identity.anyProfile({
|
||||
pluginManager: pluginManager,
|
||||
}, function(anyProfile) {
|
||||
copay.Identity.anyWallet({
|
||||
pluginManager: pluginManager,
|
||||
}, function(anyWallet) {
|
||||
$scope.retreiving = false;
|
||||
$scope.anyProfile = anyProfile;
|
||||
console.log('[createProfile.js.15:anyProfile:]',anyProfile); //TODO
|
||||
$scope.anyWallet = anyWallet;
|
||||
console.log('[createProfile.js.17:anyWallet:]',anyWallet); //TODO
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
$scope.createProfile = function(form) {
|
||||
if (form && form.$invalid) {
|
||||
|
|
@ -15,7 +33,7 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
|
|||
networkName: config.networkName,
|
||||
walletDefaults: config.wallet,
|
||||
passphrase: config.passphrase,
|
||||
}, function(err, iden , firstWallet) {
|
||||
}, function(err, iden, firstWallet) {
|
||||
controllerUtils.bindProfile($scope, iden, firstWallet);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue