mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 03:10:15 +01:00
🫧 fix: Tool Auth Form Button to Prevent Form Bubbling (#4666)
This commit is contained in:
parent
49ee88b6e8
commit
81f29360e8
1 changed files with 11 additions and 1 deletions
|
|
@ -78,8 +78,18 @@ function PluginAuthForm({ plugin, onSubmit, isEntityTool }: TPluginAuthFormProps
|
||||||
})}
|
})}
|
||||||
<button
|
<button
|
||||||
disabled={!isDirty || !isValid || isSubmitting}
|
disabled={!isDirty || !isValid || isSubmitting}
|
||||||
type="submit"
|
type="button"
|
||||||
className="btn btn-primary relative"
|
className="btn btn-primary relative"
|
||||||
|
onClick={() => {
|
||||||
|
handleSubmit((auth) =>
|
||||||
|
onSubmit({
|
||||||
|
pluginKey: plugin?.pluginKey ?? '',
|
||||||
|
action: 'install',
|
||||||
|
auth,
|
||||||
|
isEntityTool,
|
||||||
|
}),
|
||||||
|
)();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<div className="flex items-center justify-center gap-2">
|
<div className="flex items-center justify-center gap-2">
|
||||||
{localize('com_ui_save')}
|
{localize('com_ui_save')}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue