complete flow views
This commit is contained in:
parent
b774d84022
commit
f259d11f4e
3 changed files with 20 additions and 16 deletions
|
|
@ -16,20 +16,16 @@
|
|||
|
||||
<div ng-show="wordsC.mnemonicWords || (wordsC.credentialsEncrypted && !wordsC.deleted)">
|
||||
|
||||
<!-- <div class="row m10t m10b" ng-show="wordsC.show"> -->
|
||||
<div class="row m10t m10b">
|
||||
<div class="small-centered text-gray columns size-14 text-center" translate>
|
||||
Your Wallet Seed
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <div class="row" ng-show="wordsC.show"> -->
|
||||
<div class="row m10b">
|
||||
<div class="columns">
|
||||
<div class="p10 panel" ng-class="{'enable_text_select': index.network == 'testnet'}">
|
||||
<div id="addWord">
|
||||
<!-- <button class="button radius tiny" style="white-space:nowrap" ng-click="wordsC.removeButton('quiz')" id="{{word}}">ASD</button> -->
|
||||
</div>
|
||||
<div id="addWord"></div>
|
||||
</div>
|
||||
<div class="p10" style="background:white" ng-class="{'enable_text_select': index.network == 'testnet'}">
|
||||
<span ng-repeat="word in wordsC.mnemonicWords track by $index">
|
||||
|
|
@ -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
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- hide this in multisig just to show less text -->
|
||||
<div class="row m20t" ng-show="index.n==1">
|
||||
<div class="columns size-12 text-gray">
|
||||
<div class="p10t" style="border-top:1px solid #ccc">
|
||||
|
|
@ -62,6 +57,5 @@
|
|||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="extra-margin-bottom"></div>
|
||||
|
|
|
|||
|
|
@ -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 = "";
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue