From ef412f20285e015c6da2a8057437dab6752beeb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Wed, 6 Jul 2016 14:43:21 -0300 Subject: [PATCH 1/2] enable button when all words are selected --- src/js/controllers/backup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/controllers/backup.js b/src/js/controllers/backup.js index 7cbeaf093..982884af2 100644 --- a/src/js/controllers/backup.js +++ b/src/js/controllers/backup.js @@ -123,7 +123,7 @@ angular.module('copayApp.controllers').controller('backupController', }; $scope.shouldContinue = function() { - if ($scope.customWords.length == 12) + if ($scope.customWords.length == $scope.shuffledMnemonicWords.length) $scope.selectComplete = true; else $scope.selectComplete = false; From 612ff20df168c667bd0cc1c5d8cac313333e762a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Wed, 6 Jul 2016 15:25:44 -0300 Subject: [PATCH 2/2] set backup done flag if wallet is created from a specified phrase --- src/js/controllers/create.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/js/controllers/create.js b/src/js/controllers/create.js index b2df8904e..ab90f4b5b 100644 --- a/src/js/controllers/create.js +++ b/src/js/controllers/create.js @@ -176,6 +176,11 @@ angular.module('copayApp.controllers').controller('createController', }); return; } + if (self.seedSourceId == 'set') { + $timeout(function() { + $rootScope.$emit('Local/BackupDone'); + }, 1); + } go.walletHome(); });