moving delete wallet and request password to security preferences

This commit is contained in:
Gabriel Bazán 2015-11-18 10:41:06 -03:00
commit 1c841e5f21
4 changed files with 27 additions and 29 deletions

View file

@ -67,22 +67,6 @@
<div translate>Advanced</div> <div translate>Advanced</div>
</li> </li>
</ul> </ul>
<div ng-show="!index.noFocusedWallet && index.canSign">
<h4 translate ng-show="index.canSign">
Spending Restrictions
</h4>
<ul class="no-bullet m0">
<li>
<switch id="network-name" name="encrypt" ng-model="encrypt" class="green right"></switch>
<div translate>Request Password</div>
</li>
<li ng-show="preferences.touchidAvailable">
<switch id="touchid" name="touchid" ng-model="touchid" class="green right"></switch>
<div translate>Scan Fingerprint</div>
</li>
</ul>
</div>
<h4></h4>
</div> </div>
<div class="extra-margin-bottom"></div> <div class="extra-margin-bottom"></div>

View file

@ -28,11 +28,6 @@
<i class="icon-arrow-right3 size-24 right text-gray"></i> <i class="icon-arrow-right3 size-24 right text-gray"></i>
<span>Wallet Service URL</span> <span>Wallet Service URL</span>
</li> </li>
<li ng-click="$root.go('delete')">
<i class="icon-arrow-right3 size-24 right text-gray"></i>
<div translate>Delete Wallet</div>
</li>
</ul> </ul>
</div> </div>
<div class="extra-margin-bottom"></div> <div class="extra-margin-bottom"></div>

View file

@ -22,6 +22,9 @@
<p translate class="size-14 text-gray" ng-show="!index.needsBackup" > <span translate> <p translate class="size-14 text-gray" ng-show="!index.needsBackup" > <span translate>
Once you have copied your wallet seed down, it is recommended to delete it from this device. Once you have copied your wallet seed down, it is recommended to delete it from this device.
</span></p> </span></p>
<p translate class="size-14 text-gray" ng-show="index.needsBackup" > <span translate>
Need to do backup
</span></p>
<button class="button round expand warning" ng-disabled="index.needsBackup" ng-click="preferences.delete()" translate> <button class="button round expand warning" ng-disabled="index.needsBackup" ng-click="preferences.delete()" translate>
<i class="fi-trash"></i> <i class="fi-trash"></i>
<span translate> <span translate>

View file

@ -4,16 +4,32 @@
ng-init="titleSection='Security'; goBackToState = 'preferences'"> ng-init="titleSection='Security'; goBackToState = 'preferences'">
</div> </div>
<div class="content preferences" ng-controller="securityPreferencesController as security" > <div class="content preferences" ng-controller="securityPreferencesController as security" >
<h4></h4>
<h4></h4>
<ul class="no-bullet m0" ng-show="!index.noFocusedWallet"> <ul class="no-bullet m0" ng-show="!index.noFocusedWallet">
<li ng-click="$root.go('delete')">
<li ng-click="$root.go('deleteWords')" ng-show ="!security.deleted"> <i class="icon-arrow-right3 size-24 right text-gray"></i>
<i class="icon-arrow-right3 size-24 right text-gray"></i> <div translate>Delete Wallet</div>
<div translate>Delete seed words</div>
</li> </li>
<li ng-click="$root.go('deleteWords')" ng-show ="!security.deleted">
<i class="icon-arrow-right3 size-24 right text-gray"></i>
<div translate>Delete seed words</div>
</li>
</ul> </ul>
<div ng-show="!index.noFocusedWallet && index.canSign">
<h4 translate ng-show="index.canSign">
Spending Restrictions
</h4>
<ul class="no-bullet m0">
<li>
<switch id="network-name" name="encrypt" ng-model="encrypt" class="green right"></switch>
<div translate>Request Password</div>
</li>
<li ng-show="preferences.touchidAvailable">
<switch id="touchid" name="touchid" ng-model="touchid" class="green right"></switch>
<div translate>Scan Fingerprint</div>
</li>
</ul>
</div>
<h4></h4>