Merge pull request #509 from cmgustavo/bug/hide-tab-bar-after-send

Fix tab-bar after send tx
This commit is contained in:
Matias Alejo Garcia 2016-10-17 18:22:40 -03:00 committed by GitHub
commit fe085d8567
2 changed files with 10 additions and 4 deletions

View File

@ -22,4 +22,8 @@ angular.module('copayApp.controllers').controller('tabsController', function($ro
}, 1);
};
$scope.$on("$ionicView.beforeEnter", function(event, data){
$rootScope.hideTabs = '';
});
});

View File

@ -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();
});
});
}
};