mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-10 10:01:48 -05:00
16 lines
427 B
JavaScript
16 lines
427 B
JavaScript
export default function() {
|
|
return {
|
|
restrict: 'E',
|
|
templateUrl: '/static/js/main-menu/menu-default.partial.html',
|
|
link: function(scope, element) {
|
|
var contents = element.contents();
|
|
contents.unwrap();
|
|
|
|
scope.$on('$destroy', function() {
|
|
contents.remove();
|
|
$(".MenuItem--socketStatus").remove();
|
|
});
|
|
}
|
|
};
|
|
}
|