Skip to content

Commit

Permalink
menu dividers
Browse files Browse the repository at this point in the history
  • Loading branch information
salazarm committed Sep 15, 2023
1 parent 4dab527 commit 518c1e9
Showing 1 changed file with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
TextInput,
MiddleTruncate,
useViewport,
MenuDivider,
} from '@dagster-io/ui-components';
import {useVirtualizer} from '@tanstack/react-virtual';
import React from 'react';
Expand Down Expand Up @@ -361,6 +362,7 @@ const Node = ({
content={
<Menu>
<MenuItem icon="materialization" text="Materialize" />
{upstream.length || downstream.length ? <MenuDivider /> : null}
{upstream.length ? (
<MenuItem
text="Select upstream"
Expand All @@ -381,6 +383,7 @@ const Node = ({
}}
/>
) : null}
{upstream.length || downstream.length ? <MenuDivider /> : null}
{upstream.length ? (
<MenuItem
text="Show upstream graph"
Expand All @@ -401,22 +404,6 @@ const Node = ({
}}
/>
) : null}
{upstream.length ? (
<MenuItem
text={`View upstream (${upstream.length})`}
onClick={() => {
setShowUpstreamDialog(true);
}}
/>
) : null}
{downstream.length ? (
<MenuItem
text={`View downstream (${downstream.length})`}
onClick={() => {
setShowDownstreamDialog(true);
}}
/>
) : null}
</Menu>
}
hoverOpenDelay={100}
Expand Down

0 comments on commit 518c1e9

Please sign in to comment.