Merge pull request #5570 from JDonadio/ref/disable-spending-password

Ref/disable spending password
This commit is contained in:
Gabriel Edgardo Bazán 2017-02-21 15:36:02 -05:00 committed by GitHub
commit 0540f8b3be
2 changed files with 10 additions and 1 deletions

View File

@ -41,12 +41,18 @@
</div>
<a class="item item-icon-right" ui-sref="tabs.preferences.backupWarning({from: 'tabs.preferences'})" ng-hide="wallet.isPrivKeyExternal()">
<span translate>Backup</span>
<span class="right text-light assertive" ng-show="wallet.needsBackup">
{{'Backup needed' | translate}}
</span>
<i class="icon bp-arrow-right"></i>
</a>
<div ng-show="wallet.canSign()">
<ion-toggle ng-model="encryptEnabled.value" toggle-class="toggle-balanced" ng-change="encryptChange()">
<ion-toggle ng-model="encryptEnabled.value" toggle-class="toggle-balanced" ng-change="encryptChange()" ng-disabled="wallet.needsBackup">
<span class="toggle-label" translate>Request Spending Password</span>
</ion-toggle>
<div class="comment" translate>
If enabled, all sensitive information (private key and mnemonics) and actions (spending and exporting) associated with this wallet will be protected.
</div>
</div>
<div ng-show="wallet.canSign() && touchIdAvailable">
<ion-toggle ng-model="touchIdEnabled.value" toggle-class="toggle-balanced" ng-change="touchIdChange()">

View File

@ -106,6 +106,9 @@
<span class="right text-light assertive" ng-show="!item.isComplete()">
{{'Incomplete' | translate}}
</span>
<span class="right text-light assertive" ng-show="item.isComplete() && item.needsBackup">
{{'Backup needed' | translate}}
</span>
<i class="icon bp-arrow-right"></i>
</a>