mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-17 13:31:47 -05:00
19 lines
569 B
JavaScript
19 lines
569 B
JavaScript
export default
|
|
[ 'templateUrl',
|
|
function(templateUrl) {
|
|
return {
|
|
restrict: 'E',
|
|
templateUrl: templateUrl('main-menu/menu-default'),
|
|
link: function(scope, element) {
|
|
var contents = element.contents();
|
|
contents.unwrap();
|
|
|
|
scope.$on('$destroy', function() {
|
|
contents.remove();
|
|
$(".MenuItem--socketStatus").remove();
|
|
});
|
|
}
|
|
};
|
|
}
|
|
];
|