@@ -44,12 +40,11 @@
ng-disabled="!wordsC.sorted"
ng-style="{'background-color':index.backgroundColor}"
class="button black round expand"
- ng-click=""
+ ng-click="$root.go('backupConfirm');"
translate>Continue
-
diff --git a/src/js/controllers/backup.js b/src/js/controllers/backup.js
index f787dbc31..f0c3c0bc8 100644
--- a/src/js/controllers/backup.js
+++ b/src/js/controllers/backup.js
@@ -6,19 +6,18 @@ angular.module('copayApp.controllers').controller('wordsController',
var msg = gettext('Are you sure you want to delete the backup words?');
var successMsg = gettext('Backup words deleted');
var self = this;
- self.show = false;
- self.sorted = false;
- $scope.seed = '';
var customSortWords = [];
var fc = profileService.focusedClient;
+ self.show = false;
+ self.sorted = false;
- if (fc.isPrivKeyEncrypted()) self.credentialsEncrypted = true;
- else {
+ if (fc.isPrivKeyEncrypted())
+ self.credentialsEncrypted = true;
+ else
setWords(fc.getMnemonic());
- }
- if (fc.credentials && !fc.credentials.mnemonicEncrypted && !fc.credentials.mnemonic) {
+
+ if (fc.credentials && !fc.credentials.mnemonicEncrypted && !fc.credentials.mnemonic)
self.deleted = true;
- }
self.toggle = function() {
self.error = "";
diff --git a/src/js/routes.js b/src/js/routes.js
index e0260bf17..500fb70aa 100644
--- a/src/js/routes.js
+++ b/src/js/routes.js
@@ -445,6 +445,17 @@ angular
},
}
})
+ .state('backupConfirm', {
+ url: '/backupConfirm',
+ templateUrl: 'views/backupConfirm.html',
+ walletShouldBeComplete: true,
+ needProfile: true,
+ views: {
+ 'main': {
+ templateUrl: 'views/backupConfirm.html'
+ },
+ }
+ })
.state('preferencesGlobal', {
url: '/preferencesGlobal',
needProfile: true,