Showing
1 changed file
with
4 additions
and
1 deletions
@@ -22,7 +22,7 @@ import entityFilterTemplate from './entity-filter.tpl.html'; | @@ -22,7 +22,7 @@ import entityFilterTemplate from './entity-filter.tpl.html'; | ||
22 | import './entity-filter.scss'; | 22 | import './entity-filter.scss'; |
23 | 23 | ||
24 | /*@ngInject*/ | 24 | /*@ngInject*/ |
25 | -export default function EntityFilterDirective($compile, $templateCache, $q, $document, $mdDialog, types, entityService) { | 25 | +export default function EntityFilterDirective($compile, $templateCache, $q, $document, $mdDialog, types, entityService, userService) { |
26 | 26 | ||
27 | var linker = function (scope, element, attrs, ngModelCtrl) { | 27 | var linker = function (scope, element, attrs, ngModelCtrl) { |
28 | 28 | ||
@@ -31,6 +31,9 @@ export default function EntityFilterDirective($compile, $templateCache, $q, $doc | @@ -31,6 +31,9 @@ export default function EntityFilterDirective($compile, $templateCache, $q, $doc | ||
31 | 31 | ||
32 | scope.ngModelCtrl = ngModelCtrl; | 32 | scope.ngModelCtrl = ngModelCtrl; |
33 | scope.types = types; | 33 | scope.types = types; |
34 | + if (userService.isEdgesSupportEnabled()) { | ||
35 | + scope.allowedEntityTypes = Object.values(types.entityType).filter(entityType => entityType !== types.entityType.edge); | ||
36 | + } | ||
34 | scope.aliasFilterTypes = entityService.getAliasFilterTypesByEntityTypes(scope.allowedEntityTypes); | 37 | scope.aliasFilterTypes = entityService.getAliasFilterTypesByEntityTypes(scope.allowedEntityTypes); |
35 | 38 | ||
36 | scope.$watch('filter.type', function (newType, prevType) { | 39 | scope.$watch('filter.type', function (newType, prevType) { |