Fix tab-bar after send tx

This commit is contained in:
Gustavo Maximiliano Cortez 2016-10-17 14:09:54 -03:00
parent 48654569d7
commit e0dff39895
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
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();
});
});
}
};