Merge pull request #6322 from gabrielbazan7/fix/tabsFlash
avoid flickers on transitions and fixes hidden tab bug
This commit is contained in:
commit
b730921fab
43 changed files with 66 additions and 56 deletions
|
|
@ -41,8 +41,4 @@ angular.module('copayApp.controllers').controller('tabsController', function($ro
|
|||
|
||||
};
|
||||
|
||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||
$rootScope.hideTabs = '';
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
|||
15
src/js/directives/showTabs.js
Normal file
15
src/js/directives/showTabs.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
'use strict';
|
||||
angular.module('copayApp.directives')
|
||||
.directive('showTabs', function($rootScope, $timeout) {
|
||||
return {
|
||||
restrict: 'A',
|
||||
link: function($scope, $el) {
|
||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||
$timeout(function() {
|
||||
$rootScope.hideTabs = '';
|
||||
$rootScope.$apply();
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue