mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #509 from cmgustavo/bug/hide-tab-bar-after-send
Fix tab-bar after send tx
This commit is contained in:
commit
fe085d8567
|
@ -22,4 +22,8 @@ angular.module('copayApp.controllers').controller('tabsController', function($ro
|
||||||
}, 1);
|
}, 1);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.$on("$ionicView.beforeEnter", function(event, data){
|
||||||
|
$rootScope.hideTabs = '';
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
angular.module('copayApp.directives')
|
angular.module('copayApp.directives')
|
||||||
.directive('hideTabs', function($rootScope) {
|
.directive('hideTabs', function($rootScope, $timeout) {
|
||||||
return {
|
return {
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
link: function($scope, $el) {
|
link: function($scope, $el) {
|
||||||
$rootScope.hideTabs = 'tabs-item-hide';
|
$scope.$on("$ionicView.beforeEnter", function(event, data){
|
||||||
$scope.$on('$destroy', function() {
|
$timeout(function() {
|
||||||
$rootScope.hideTabs = '';
|
$rootScope.hideTabs = 'tabs-item-hide';
|
||||||
|
$rootScope.$apply();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue