diff options
| author | Nate Sesti <sestinj@gmail.com> | 2023-06-25 15:14:56 -0700 | 
|---|---|---|
| committer | Nate Sesti <sestinj@gmail.com> | 2023-06-25 15:14:56 -0700 | 
| commit | 3338d05db9f5f21d8a9d440cb428f2c6a188b363 (patch) | |
| tree | 637ddfb304479e055409c6a494d7961d8da1e812 /extension/react-app/src | |
| parent | 2d37d2bd1ee8022aa4eb5db1285c50feced14771 (diff) | |
| download | sncontinue-3338d05db9f5f21d8a9d440cb428f2c6a188b363.tar.gz sncontinue-3338d05db9f5f21d8a9d440cb428f2c6a188b363.tar.bz2 sncontinue-3338d05db9f5f21d8a9d440cb428f2c6a188b363.zip  | |
shipped function calling
Diffstat (limited to 'extension/react-app/src')
| -rw-r--r-- | extension/react-app/src/components/HeaderButtonWithText.tsx | 6 | ||||
| -rw-r--r-- | extension/react-app/src/tabs/gui.tsx | 2 | 
2 files changed, 5 insertions, 3 deletions
diff --git a/extension/react-app/src/components/HeaderButtonWithText.tsx b/extension/react-app/src/components/HeaderButtonWithText.tsx index 5901c5d8..30931f86 100644 --- a/extension/react-app/src/components/HeaderButtonWithText.tsx +++ b/extension/react-app/src/components/HeaderButtonWithText.tsx @@ -15,7 +15,11 @@ const HeaderButtonWithText = (props: HeaderButtonWithTextProps) => {      <HeaderButton        disabled={props.disabled}        style={{ padding: "1px", paddingLeft: hover ? "4px" : "1px" }} -      onMouseEnter={() => setHover(true)} +      onMouseEnter={() => { +        if (!props.disabled) { +          setHover(true); +        } +      }}        onMouseLeave={() => {          setHover(false);        }} diff --git a/extension/react-app/src/tabs/gui.tsx b/extension/react-app/src/tabs/gui.tsx index 5001fe4b..4886bfad 100644 --- a/extension/react-app/src/tabs/gui.tsx +++ b/extension/react-app/src/tabs/gui.tsx @@ -491,8 +491,6 @@ function GUI(props: GUIProps) {          <HeaderButtonWithText            onClick={() => {              client?.sendClear(); -            // Reload the window to get completely fresh session -            window.location.reload();            }}            text="Clear All"          >  | 
