set shuffled words on view

This commit is contained in:
Javier 2015-11-20 16:10:34 -03:00
commit bed85f027d
2 changed files with 15 additions and 15 deletions

View file

@ -16,7 +16,6 @@
## STEP 1 ## STEP 1
--> -->
<div ng-show="wordsC.step1"> <div ng-show="wordsC.step1">
<div ng-show="wordsC.mnemonicWords || (wordsC.credentialsEncrypted && !wordsC.deleted)"> <div ng-show="wordsC.mnemonicWords || (wordsC.credentialsEncrypted && !wordsC.deleted)">
<h5 class="text-center">Write your wallet seed</h5> <h5 class="text-center">Write your wallet seed</h5>
@ -100,20 +99,21 @@
<!-- <!--
## STEP 2 ## STEP 2
--> -->
<div ng-show="wordsC.step2" class="columns"> <div ng-show="wordsC.step2" class="columns">
<div class="columns text-center"> <div class="columns text-center">
<h5>Confirm your wallet seed</h5> <h5>Confirm your wallet seed</h5>
<p class="p20 text-gray m0"> <p class="p20 text-gray m0">
Please tap the words in order to confirm your backup phrase is correctly written. Please tap the words in order to confirm your backup phrase is correctly written.
</p> </p>
<div class="panel words text-left" ng-class="{'enable_text_select': index.network == 'testnet'}"> <div class="panel words text-left" ng-class="{'enable_text_select': index.network == 'testnet'}">
<div id="addWord"></div> <div id="addWord"></div>
</div> </div>
<div class="text-left m20b" ng-class="{'enable_text_select': index.network == 'testnet'}"> <div class="text-left m20b" ng-class="{'enable_text_select': index.network == 'testnet'}">
<span ng-repeat="word in wordsC.mnemonicWords track by $index"> <span ng-repeat="word in wordsC.shuffledMnemonicWords track by $index">
<button class="button radius tiny words" ng-click="wordsC.disableButton(word)" id="{{word}}">{{word}}</button> <button class="button radius tiny words" ng-click="wordsC.disableButton(word)" id="{{word}}">{{word}}</button>
</span> </span>
</div> </div>
</div> </div>
<div class="columns text-center"> <div class="columns text-center">
@ -130,6 +130,7 @@
<!-- <!--
## STEP 3 ## STEP 3
--> -->
<div ng-show="wordsC.step3"> <div ng-show="wordsC.step3">
<div class="columns text-center"> <div class="columns text-center">
<h5> Enter your passphrase</h5> <h5> Enter your passphrase</h5>
@ -152,6 +153,7 @@
<!-- <!--
## STEP 4 ## STEP 4
--> -->
<div ng-show="wordsC.step4"> <div ng-show="wordsC.step4">
<div class="box-notification" ng-show="wordsC.backupNoOk"> <div class="box-notification" ng-show="wordsC.backupNoOk">
<span class="text-warning" translate> <span class="text-warning" translate>

View file

@ -78,8 +78,6 @@ angular.module('copayApp.controllers').controller('backupController',
self.mnemonicHasPassphrase = fc.mnemonicHasPassphrase(); self.mnemonicHasPassphrase = fc.mnemonicHasPassphrase();
self.useIdeograms = words.indexOf("\u3000") >= 0; self.useIdeograms = words.indexOf("\u3000") >= 0;
} }
console.log(self.mnemonicWords);
console.log(self.shuffledMnemonicWords);
}; };
self.toggle = function() { self.toggle = function() {