Skip to content

Commit

Permalink
feat: task rerurn done
Browse files Browse the repository at this point in the history
Signed-off-by: Eugene Jahn <[email protected]>
  • Loading branch information
eugenejahn committed May 19, 2022
1 parent 80e68ff commit 115f1fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { useEffect, useMemo, useRef, useState } from 'react';
import { IconButton, Typography, Tab, Tabs, Button } from '@material-ui/core';
import { IconButton, Typography, Tab, Tabs } from '@material-ui/core';
import { makeStyles, Theme } from '@material-ui/core/styles';
import Close from '@material-ui/icons/Close';
import ArrowBackIos from '@material-ui/icons/ArrowBackIos';
Expand Down Expand Up @@ -240,6 +240,7 @@ export const NodeExecutionDetailsPanelContent: React.FC<NodeExecutionDetailsProp
const styles = useStyles();
const queryClient = useQueryClient();
const detailsContext = useNodeExecutionContext();

const [isReasonsVisible, setReasonsVisible] = useState<boolean>(false);
const [dag, setDag] = useState<any>(null);
const [details, setDetails] = useState<NodeExecutionDetails | undefined>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@ export const LaunchFormDialog: React.FC<{
}> = ({ className, id, showLaunchForm, setShowLaunchForm }) => {
const onCancelLaunch = () => setShowLaunchForm(false);

// prevent child onclick event in the dialog triggers parent onclick event
const dialogOnClick = (e: React.MouseEvent<HTMLElement>) => {
e.stopPropagation();
};

return (
<Dialog
scroll="paper"
maxWidth="sm"
fullWidth={true}
open={showLaunchForm}
onClick={(e) => {
e.stopPropagation();
}}
onClick={dialogOnClick}
>
<LaunchForm onClose={onCancelLaunch} {...getLaunchProps(id)} />
</Dialog>
Expand Down

0 comments on commit 115f1fe

Please sign in to comment.