Browse Source

Hide edge type in alias types

pull/3957/head
Artem Babak 6 years ago
parent
commit
f71aec543a
  1. 2
      ui/src/app/entity/entity-filter.directive.js

2
ui/src/app/entity/entity-filter.directive.js

@ -31,7 +31,7 @@ export default function EntityFilterDirective($compile, $templateCache, $q, $doc
scope.ngModelCtrl = ngModelCtrl; scope.ngModelCtrl = ngModelCtrl;
scope.types = types; scope.types = types;
if (userService.isEdgesSupportEnabled()) { if (!userService.isEdgesSupportEnabled()) {
scope.allowedEntityTypes = Object.values(types.entityType).filter(entityType => entityType !== types.entityType.edge); scope.allowedEntityTypes = Object.values(types.entityType).filter(entityType => entityType !== types.entityType.edge);
} }
scope.aliasFilterTypes = entityService.getAliasFilterTypesByEntityTypes(scope.allowedEntityTypes); scope.aliasFilterTypes = entityService.getAliasFilterTypesByEntityTypes(scope.allowedEntityTypes);

Loading…
Cancel
Save