Commit f71aec543afc6e55028c9a1bc6bd8670796ec746

Authored by Artem Babak
1 parent 5aa8ad17

Hide edge type in alias types

@@ -31,7 +31,7 @@ export default function EntityFilterDirective($compile, $templateCache, $q, $doc @@ -31,7 +31,7 @@ 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()) { 34 + if (!userService.isEdgesSupportEnabled()) {
35 scope.allowedEntityTypes = Object.values(types.entityType).filter(entityType => entityType !== types.entityType.edge); 35 scope.allowedEntityTypes = Object.values(types.entityType).filter(entityType => entityType !== types.entityType.edge);
36 } 36 }
37 scope.aliasFilterTypes = entityService.getAliasFilterTypesByEntityTypes(scope.allowedEntityTypes); 37 scope.aliasFilterTypes = entityService.getAliasFilterTypesByEntityTypes(scope.allowedEntityTypes);