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',
|
angular.module('copayApp.controllers').controller('CopayersController',
|
||||||
function($scope, $rootScope, $location, backupService, walletFactory, controllerUtils) {
|
function($scope, $rootScope, $location, backupService, walletFactory, controllerUtils) {
|
||||||
|
|
||||||
|
$scope.hideAdv = true;
|
||||||
|
|
||||||
$scope.backup = function() {
|
$scope.backup = function() {
|
||||||
var w = $rootScope.wallet;
|
var w = $rootScope.wallet;
|
||||||
w.setBackupReady();
|
w.setBackupReady();
|
||||||
|
|
|
||||||
|
|
@ -76,12 +76,20 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
<a translate class="text-warning" ng-really-click="deleteWallet()"
|
<div class="left text-left m10b">
|
||||||
ng-really-message="Are you sure to delete this wallet from this
|
<a class="expand small" ng-click="hideAdv=!hideAdv">
|
||||||
computer?">Delete wallet</a>
|
<span translate ng-hide="!hideAdv">Show</span>
|
||||||
<span class="text-gray">|</span>
|
<span translate ng-hide="hideAdv">Hide</span>
|
||||||
<a translate class="text-primary m20r" ng-click="downloadBackup()"
|
<span translate>advanced options</span>
|
||||||
ng-show="!$root.wallet.publicKeyRing.isComplete()">Download seed backup</a>
|
</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"
|
<button class="button primary m0"
|
||||||
ng-click="backup()"
|
ng-click="backup()"
|
||||||
ng-show="!$root.wallet.publicKeyRing.isBackupReady()"
|
ng-show="!$root.wallet.publicKeyRing.isBackupReady()"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue