mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-06 01:31:49 +01:00
👆 fix: Web Search and Code Interpreter Toggle Cursor Hover Behavior (#11614)
This commit is contained in:
parent
6274268411
commit
2cef9368ea
2 changed files with 10 additions and 2 deletions
|
|
@ -14,6 +14,7 @@ import type { AgentForm } from '~/common';
|
|||
import { useLocalize, useCodeApiKeyForm } from '~/hooks';
|
||||
import ApiKeyDialog from './ApiKeyDialog';
|
||||
import { ESide } from '~/common';
|
||||
import { cn } from '~/utils';
|
||||
|
||||
export default function Action({ authType = '', isToolAuthenticated = false }) {
|
||||
const localize = useLocalize();
|
||||
|
|
@ -73,7 +74,10 @@ export default function Action({ authType = '', isToolAuthenticated = false }) {
|
|||
<label
|
||||
id="execute-code-label"
|
||||
htmlFor="execute-code-checkbox"
|
||||
className="form-check-label text-token-text-primary cursor-pointer"
|
||||
className={cn(
|
||||
'form-check-label text-token-text-primary',
|
||||
(runCodeIsEnabled || isToolAuthenticated) && 'cursor-pointer',
|
||||
)}
|
||||
>
|
||||
{localize('com_ui_run_code')}
|
||||
</label>
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ import type { AgentForm } from '~/common';
|
|||
import { useLocalize, useSearchApiKeyForm } from '~/hooks';
|
||||
import ApiKeyDialog from './ApiKeyDialog';
|
||||
import { ESide } from '~/common';
|
||||
import { cn } from '~/utils';
|
||||
|
||||
export default function Action({
|
||||
authTypes = [],
|
||||
|
|
@ -81,7 +82,10 @@ export default function Action({
|
|||
<label
|
||||
id="web-search-label"
|
||||
htmlFor="web-search-checkbox"
|
||||
className="form-check-label text-token-text-primary cursor-pointer"
|
||||
className={cn(
|
||||
'form-check-label text-token-text-primary',
|
||||
(webSearchIsEnabled || isToolAuthenticated) && 'cursor-pointer',
|
||||
)}
|
||||
>
|
||||
{localize('com_ui_web_search')}
|
||||
</label>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue