Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/Add-tag-right-click-to-disable-f…
Browse files Browse the repository at this point in the history
…unction' into Add-tag-right-click-to-disable-function

# Conflicts:
#	dinky-web/src/pages/DataStudioNew/index.tsx
  • Loading branch information
Zzm0809 committed Nov 11, 2024
2 parents e310a99 + 67f6996 commit 85b2df3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,11 @@ export const SqlTask = memo((props: FlinkSqlProps & any) => {
}, [currentState, updateAction]);

const handleStop = useCallback(async () => {
const result = await cancelTask(l('pages.datastudio.editor.stop.job'), currentState.taskId, false);
const result = await cancelTask(
l('pages.datastudio.editor.stop.job'),
currentState.taskId,
false
);
if (result.success) {
setCurrentState((prevState) => {
return {
Expand Down
24 changes: 12 additions & 12 deletions dinky-web/src/pages/DataStudioNew/ContextMenuSpace.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import {Space} from "antd";
import React from "react";

import { Space } from 'antd';
import React from 'react';

interface ContextMenuSpaceProps {
onContextMenu: (e: React.MouseEvent<HTMLElement>) => void;
children: React.ReactNode| JSX.Element | string;
children: React.ReactNode | JSX.Element | string;
}

export const ContextMenuSpace = (props: ContextMenuSpaceProps) => {

const {onContextMenu, children} = props;
return <>
<Space onContextMenu={onContextMenu} size={0}>
{children}
</Space>
</>
}
const { onContextMenu, children } = props;
return (
<>
<Space onContextMenu={onContextMenu} size={0}>
{children}
</Space>
</>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ const ResourceOverView: React.FC<connect> = (props) => {
});
}, []);

useEffect( () => {
useEffect(() => {
// if enableResource is true, then refresh the tree, otherwise do nothing
if (enableResource) {
refreshTree();
refreshTree();
}
}, [enableResource]);

Expand Down

0 comments on commit 85b2df3

Please sign in to comment.