mirror of https://github.com/BTCPrivate/copay.git
Fix tab-bar after send tx
This commit is contained in:
parent
48654569d7
commit
e0dff39895
|
@ -22,4 +22,8 @@ angular.module('copayApp.controllers').controller('tabsController', function($ro
|
|||
}, 1);
|
||||
};
|
||||
|
||||
$scope.$on("$ionicView.beforeEnter", function(event, data){
|
||||
$rootScope.hideTabs = '';
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue