Skip to content

Commit

Permalink
small lineage ui nits
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe-lyons committed Mar 10, 2022
1 parent 6e2e76b commit 30a5f70
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions datahub-web-react/src/app/entity/dataset/DatasetEntity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,13 @@ export class DatasetEntity implements Entity<Dataset> {
component: LineageTab,
display: {
visible: (_, _1) => true,
enabled: (_, dataset: GetDatasetQuery) =>
(dataset?.dataset?.upstream?.count || 0) > 0 ||
(dataset?.dataset?.downstream?.count || 0) > 0,
enabled: (_, dataset: GetDatasetQuery) => {
console.log(dataset?.dataset?.upstream, dataset?.dataset?.downstream);
return (
(dataset?.dataset?.upstream?.total || 0) > 0 ||
(dataset?.dataset?.downstream?.total || 0) > 0
);
},
},
},
{
Expand Down
4 changes: 3 additions & 1 deletion datahub-web-react/src/app/lineage/LineageEntityNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ export default function LineageEntityNode({
|{' '}
</tspan>
<tspan dx=".25em" dy="-2px">
{capitalizeFirstLetter(node.data.subtype || node.data.type)}
{capitalizeFirstLetter(
node.data.subtype || (node.data.type && entityRegistry.getEntityName(node.data.type)),
)}
</tspan>
</UnselectableText>
{expandTitles ? (
Expand Down

0 comments on commit 30a5f70

Please sign in to comment.