diff --git a/src/js/controllers/tabsController.js b/src/js/controllers/tabsController.js index 13c14cde8..f3397286b 100644 --- a/src/js/controllers/tabsController.js +++ b/src/js/controllers/tabsController.js @@ -22,4 +22,8 @@ angular.module('copayApp.controllers').controller('tabsController', function($ro }, 1); }; + $scope.$on("$ionicView.beforeEnter", function(event, data){ + $rootScope.hideTabs = ''; + }); + }); diff --git a/src/js/directives/hideTabs.js b/src/js/directives/hideTabs.js index c5d933df7..47a59a9e0 100644 --- a/src/js/directives/hideTabs.js +++ b/src/js/directives/hideTabs.js @@ -1,12 +1,14 @@ 'use strict'; angular.module('copayApp.directives') -.directive('hideTabs', function($rootScope) { +.directive('hideTabs', function($rootScope, $timeout) { return { restrict: 'A', link: function($scope, $el) { - $rootScope.hideTabs = 'tabs-item-hide'; - $scope.$on('$destroy', function() { - $rootScope.hideTabs = ''; + $scope.$on("$ionicView.beforeEnter", function(event, data){ + $timeout(function() { + $rootScope.hideTabs = 'tabs-item-hide'; + $rootScope.$apply(); + }); }); } };