force the nav bar to appear if it disappears

This commit is contained in:
Kadir Sekha 2018-02-28 14:15:44 +05:00
commit 25a30eeb55
27 changed files with 110 additions and 30 deletions

View file

@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('preferencesDeleteWalletController',
function($scope, $ionicHistory, gettextCatalog, lodash, profileService, $state, ongoingProcess, popupService, pushNotificationsService) {
function($scope, $ionicHistory, gettextCatalog, lodash, profileService, $state, ongoingProcess, popupService, pushNotificationsService, $ionicNavBarDelegate) {
$scope.$on("$ionicView.beforeEnter", function(event, data) {
if (!data.stateParams || !data.stateParams.walletId) {
@ -20,6 +20,10 @@ angular.module('copayApp.controllers').controller('preferencesDeleteWalletContro
$scope.walletName = $scope.wallet.name;
});
$scope.$on("$ionicView.enter", function(event, data) {
$ionicNavBarDelegate.showBar(true);
});
$scope.showDeletePopup = function() {
var title = gettextCatalog.getString('Warning!');
var message = gettextCatalog.getString('Are you sure you want to delete this wallet?');