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('importController',
function($scope, $timeout, $log, $state, $stateParams, $ionicHistory, $ionicScrollDelegate, profileService, configService, sjcl, ledger, trezor, derivationPathHelper, platformInfo, bwcService, ongoingProcess, walletService, popupService, gettextCatalog, appConfigService, hwWallet) {
function($scope, $timeout, $log, $state, $stateParams, $ionicHistory, $ionicScrollDelegate, profileService, configService, sjcl, ledger, trezor, derivationPathHelper, platformInfo, bwcService, ongoingProcess, walletService, popupService, gettextCatalog, appConfigService, hwWallet, $ionicNavBarDelegate) {
var reader = new FileReader();
var defaults = configService.getDefaults();
@ -422,6 +422,10 @@ angular.module('copayApp.controllers').controller('importController',
}, 10);
};
$scope.$on("$ionicView.enter", function(event, data) {
$ionicNavBarDelegate.showBar(true);
});
$scope.$on("$ionicView.afterEnter", function(event, data) {
$scope.showAdv = false;
$scope.init();