Fix hideTabs
This commit is contained in:
parent
65dc3d24c0
commit
1b56e48cf7
11 changed files with 23 additions and 39 deletions
13
src/js/directives/hideTabs.js
Normal file
13
src/js/directives/hideTabs.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
'use strict';
|
||||
angular.module('copayApp.directives')
|
||||
.directive('hideTabs', function($rootScope) {
|
||||
return {
|
||||
restrict: 'A',
|
||||
link: function($scope, $el) {
|
||||
$rootScope.hideTabs = 'tabs-item-hide';
|
||||
$scope.$on('$destroy', function() {
|
||||
$rootScope.hideTabs = '';
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue