Merge pull request #1328 from cmgustavo/ux/01-copayers
hide delete and backup wallets on the intermediate screen
This commit is contained in:
commit
0917fcd7da
2 changed files with 16 additions and 6 deletions
|
|
@ -3,6 +3,8 @@
|
|||
angular.module('copayApp.controllers').controller('CopayersController',
|
||||
function($scope, $rootScope, $location, backupService, walletFactory, controllerUtils) {
|
||||
|
||||
$scope.hideAdv = true;
|
||||
|
||||
$scope.backup = function() {
|
||||
var w = $rootScope.wallet;
|
||||
w.setBackupReady();
|
||||
|
|
|
|||
|
|
@ -76,12 +76,20 @@
|
|||
</div>
|
||||
|
||||
<div class="text-right">
|
||||
<a translate class="text-warning" ng-really-click="deleteWallet()"
|
||||
ng-really-message="Are you sure to delete this wallet from this
|
||||
computer?">Delete wallet</a>
|
||||
<span class="text-gray">|</span>
|
||||
<a translate class="text-primary m20r" ng-click="downloadBackup()"
|
||||
ng-show="!$root.wallet.publicKeyRing.isComplete()">Download seed backup</a>
|
||||
<div class="left text-left m10b">
|
||||
<a class="expand small" ng-click="hideAdv=!hideAdv">
|
||||
<span translate ng-hide="!hideAdv">Show</span>
|
||||
<span translate ng-hide="hideAdv">Hide</span>
|
||||
<span translate>advanced options</span>
|
||||
</a>
|
||||
<div ng-hide="hideAdv">
|
||||
<a translate class="text-warning" ng-really-click="deleteWallet()"
|
||||
ng-really-message="Are you sure to delete this wallet from this computer?">Delete wallet</a>
|
||||
<span class="text-gray">|</span>
|
||||
<a translate class="text-primary m20r" ng-click="downloadBackup()"
|
||||
ng-show="!$root.wallet.publicKeyRing.isComplete()">Download seed backup</a>
|
||||
</div>
|
||||
</div>
|
||||
<button class="button primary m0"
|
||||
ng-click="backup()"
|
||||
ng-show="!$root.wallet.publicKeyRing.isBackupReady()"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue