mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #188 from jamal-jackson/feature/settings_views_polish
somewhat styled delete wallet view
This commit is contained in:
commit
db7f4fcbe6
|
@ -5,13 +5,17 @@
|
|||
</ion-nav-back-button>
|
||||
</ion-nav-bar>
|
||||
<ion-content>
|
||||
<div class="card">
|
||||
<h1 class="text-center" translate>Warning!</h2>
|
||||
<div class="assertive padding" translate>Permanently delete this wallet. THIS ACTION CANNOT BE REVERSED</div>
|
||||
<div class="text-center padding">
|
||||
<span ng-show="alias">{{alias}}</span>{{walletName}}
|
||||
<div class="white-bg padding">
|
||||
<h1 class="text-center assertive" translate>Warning!</h2>
|
||||
<div class="padding text-center">
|
||||
<p translate>
|
||||
Permanently delete this wallet.
|
||||
</p>
|
||||
<p translate class="bold-text">
|
||||
THIS ACTION CANNOT BE REVERSED
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<button class="button button-block button-assertive" ng-click="showDeletePopup()"translate>Delete</button>
|
||||
<button class="button button-block button-assertive" ng-click="showDeletePopup()"translate>Delete <span ng-show="alias">{{alias}}</span>{{walletName}}</button>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
|
|
|
@ -4,7 +4,7 @@ angular.module('copayApp.controllers').controller('preferencesDeleteWalletContro
|
|||
function($scope, $stateParams, $ionicHistory, gettextCatalog, lodash, profileService, $state, ongoingProcess, popupService) {
|
||||
var wallet = profileService.getWallet($stateParams.walletId);
|
||||
$scope.alias = lodash.isEqual(wallet.name, wallet.credentials.walletName) ? null : wallet.name + ' ';
|
||||
$scope.walletName = '[' + wallet.credentials.walletName + ']';
|
||||
$scope.walletName = wallet.credentials.walletName;
|
||||
|
||||
$scope.showDeletePopup = function() {
|
||||
var title = gettextCatalog.getString('Warning!');
|
||||
|
|
|
@ -45,6 +45,11 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.white-bg{
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.overlay {
|
||||
position: absolute;
|
||||
top:0;
|
||||
|
|
Loading…
Reference in New Issue