diff options
author | Nate Sesti <33237525+sestinj@users.noreply.github.com> | 2023-06-25 13:50:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-25 13:50:23 -0700 |
commit | 5419dde036428d7b74063aaffb053c6a28d00483 (patch) | |
tree | 445b9839396e8000b0fabd14fb7f4294730fb0c9 /extension | |
parent | 3f1123095d2ee652b1db239d325aa74f5acfb0cf (diff) | |
parent | 4b394e96a57e0a018cb815e929bf28b445e17ae0 (diff) | |
download | sncontinue-5419dde036428d7b74063aaffb053c6a28d00483.tar.gz sncontinue-5419dde036428d7b74063aaffb053c6a28d00483.tar.bz2 sncontinue-5419dde036428d7b74063aaffb053c6a28d00483.zip |
Merge pull request #153 from continuedev/function-calling
Function calling
Diffstat (limited to 'extension')
-rw-r--r-- | extension/react-app/src/components/HeaderButtonWithText.tsx | 2 | ||||
-rw-r--r-- | extension/react-app/src/components/StepContainer.tsx | 1 | ||||
-rw-r--r-- | extension/react-app/src/tabs/gui.tsx | 4 |
3 files changed, 6 insertions, 1 deletions
diff --git a/extension/react-app/src/components/HeaderButtonWithText.tsx b/extension/react-app/src/components/HeaderButtonWithText.tsx index acaca9ce..5901c5d8 100644 --- a/extension/react-app/src/components/HeaderButtonWithText.tsx +++ b/extension/react-app/src/components/HeaderButtonWithText.tsx @@ -6,12 +6,14 @@ interface HeaderButtonWithTextProps { text: string; onClick?: (e: any) => void; children: React.ReactNode; + disabled?: boolean; } const HeaderButtonWithText = (props: HeaderButtonWithTextProps) => { const [hover, setHover] = useState(false); return ( <HeaderButton + disabled={props.disabled} style={{ padding: "1px", paddingLeft: hover ? "4px" : "1px" }} onMouseEnter={() => setHover(true)} onMouseLeave={() => { diff --git a/extension/react-app/src/components/StepContainer.tsx b/extension/react-app/src/components/StepContainer.tsx index 74a1c4e8..827d2d5f 100644 --- a/extension/react-app/src/components/StepContainer.tsx +++ b/extension/react-app/src/components/StepContainer.tsx @@ -200,6 +200,7 @@ function StepContainer(props: StepContainerProps) { <> <HeaderButtonWithText + disabled={props.historyNode.active as boolean} onClick={(e) => { e.stopPropagation(); props.onDelete(); diff --git a/extension/react-app/src/tabs/gui.tsx b/extension/react-app/src/tabs/gui.tsx index a457382d..5001fe4b 100644 --- a/extension/react-app/src/tabs/gui.tsx +++ b/extension/react-app/src/tabs/gui.tsx @@ -391,7 +391,7 @@ function GUI(props: GUIProps) { /> ); })} - {/* {waitingForSteps && <Loader></Loader>} */} + {waitingForSteps && <Loader></Loader>} <div> {userInputQueue.map((input) => { @@ -491,6 +491,8 @@ function GUI(props: GUIProps) { <HeaderButtonWithText onClick={() => { client?.sendClear(); + // Reload the window to get completely fresh session + window.location.reload(); }} text="Clear All" > |