Merge pull request #4434 from cmgustavo/bug/no-wallets-02

Fix UI delete wallets
This commit is contained in:
Matias Alejo Garcia 2016-06-17 09:36:43 -03:00 committed by GitHub
commit 468c3babcf
4 changed files with 7 additions and 17 deletions

View file

@ -1,19 +1,15 @@
<div class="topbar-container"
ng-include="'views/includes/topbar.html'"
ng-init="showPreferences = true">
ng-init="showPreferences = true" ng-show="!index.noFocusedWallet">
</div>
<div ng-controller="walletHomeController as home">
<div class="row columns m20tp" ng-show="index.noFocusedWallet">
<div class="text-center text-warning m20b">
<i class="fi-alert"></i> <span translate>You do not have a wallet</span>
<div class="row columns m30tp" ng-show="index.noFocusedWallet">
<div class="text-center size-12 text-warning m20b">
<i class="fi-alert"></i> <span translate>You do not have any wallet</span>
</div>
<button class="button black round expand" href ui-sref="add" translate>Create</button>
<div class="text-center text-gray p20v" href ui-sref="preferencesGlobal">
<button class=" outline round dark-gray tiny" translate>Settings</button>
</div>
</div>
<div class="onGoingProcess" ng-show="index.updating">
@ -28,7 +24,7 @@
<span translate>Updating Wallet...</span>
</div>
</div>
<div class="oh" ng-show="!index.noFocusedWallet">

View file

@ -1646,12 +1646,6 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.isComplete = null;
self.walletName = null;
uxLanguage.update();
profileService.isDisclaimerAccepted(function(v) {
if (v) {
go.path('import');
}
});
});
});

View file

@ -5,7 +5,7 @@ angular.module('copayApp.controllers').controller('confirmationController', func
$scope.ok = function() {
$scope.loading = true;
$scope.okAction();
$scope.cancel();
$scope.confirmationModal.hide();
};
$scope.cancel = function() {

View file

@ -38,10 +38,10 @@ angular.module('copayApp.controllers').controller('preferencesDeleteWalletContro
if (err) {
$scope.error = err.message || err;
} else {
go.walletHome();
notification.success(gettextCatalog.getString('Success'), gettextCatalog.getString('The wallet "{{walletName}}" was deleted', {
walletName: walletName
}));
applicationService.restart();
}
});
};