set backupFlag after showing the words
This commit is contained in:
parent
4c155b7895
commit
ee04b7f318
5 changed files with 13 additions and 9 deletions
|
|
@ -22,7 +22,7 @@
|
|||
<div class="m10t oh" ng-init="show=false">
|
||||
<a class="button outline light-gray expand tiny" ng-click="show=!show">
|
||||
<i class="fi-widget m3r"></i>
|
||||
<span translate ng-hide="show">Show Backup Words</span>
|
||||
<span translate ng-hide="show" ng-click="wordsC.done()">Show Backup Words</span>
|
||||
<span translate ng-hide="!show">Hide Backup Words</span>
|
||||
<i ng-if="!show" class="icon-arrow-down4"></i>
|
||||
<i ng-if="show" class="icon-arrow-up4"></i>
|
||||
|
|
|
|||
|
|
@ -48,6 +48,13 @@
|
|||
(index {{preferences.externalIndex}})
|
||||
</span>
|
||||
</li>
|
||||
<li class="line-b p20" ng-click="$root.go('backup')" ng-show="preferences.externalIndex >= 0">
|
||||
<i class="icon-arrow-right3 size-24 right text-gray"></i>
|
||||
<span class="text-warning right" ng-show="index.needsBackup">
|
||||
<i class="fi-alert"></i> <span translate> Still not done</span>
|
||||
</span>
|
||||
<span translate>Backup</span>
|
||||
</li>
|
||||
|
||||
<h4 class="title m0"> </h4>
|
||||
<li class="line-b p20" ng-click="$root.go('export')">
|
||||
|
|
|
|||
|
|
@ -17,11 +17,6 @@
|
|||
<span translate>Scan addresses for funds</span>
|
||||
</li>
|
||||
|
||||
<li class="line-b p20" ng-click="$root.go('addaccess');">
|
||||
<i class="icon-arrow-right3 size-24 right text-gray"></i>
|
||||
<span translate>Add access (TODO)</span>
|
||||
</li>
|
||||
|
||||
<li class="line-b p20" ng-click="$root.go('delete')">
|
||||
<i class="icon-arrow-right3 size-24 right text-gray"></i>
|
||||
<span translate>Delete Wallet</span>
|
||||
|
|
|
|||
|
|
@ -5,9 +5,11 @@ angular.module('copayApp.controllers').controller('wordsController',
|
|||
this.getMnemonic = function() {
|
||||
var fc = profileService.focusedClient;
|
||||
var words = fc.getMnemonic();
|
||||
console.log('[backup.js.7:words:]',words); //TODO
|
||||
if (!words) return;
|
||||
|
||||
return words.split(' ');
|
||||
};
|
||||
|
||||
this.done = function() {
|
||||
$rootScope.$emit('Local/BackupDone');
|
||||
};
|
||||
});
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ angular.module('copayApp.controllers').controller('backupController',
|
|||
return ;
|
||||
}
|
||||
$rootScope.$emit('Local/BackupDone');
|
||||
notification.success(gettext('Backup created'), gettext('Encrypted backup file saved'));
|
||||
notification.success(gettext('Success'), gettext('Encrypted export file saved'));
|
||||
go.walletHome();
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue