mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 01:35:59 +08:00
Fix a bug in 'assistant-setting.tsx' that causes the upload button to… (#796)
… incorrectly appear on the model settings page. ### What problem does this PR solve? This is an issue with the Upload component on the assistant-setting page. I use the show variable to explicitly control the button component within it. see:  ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [x] Other (please describe): Add the local models that DeepDoc depends on to the gitignore file in dev mode. Signed-off-by: liuchao <lcjia_you@126.com>
This commit is contained in:
parent
7b144cc086
commit
63ca15c595
1
.gitignore
vendored
1
.gitignore
vendored
@ -29,3 +29,4 @@ Cargo.lock
|
||||
docker/ragflow-logs/
|
||||
/flask_session
|
||||
/logs
|
||||
rag/res/deepdoc
|
@ -22,6 +22,15 @@ const AssistantSetting = ({ show }: ISegmentedContentProps) => {
|
||||
return e?.fileList;
|
||||
};
|
||||
|
||||
const uploadButtion = (
|
||||
<button style={{ border: 0, background: 'none' }} type="button">
|
||||
<PlusOutlined />
|
||||
<div style={{ marginTop: 8 }}>
|
||||
{t('upload', { keyPrefix: 'common' })}
|
||||
</div>
|
||||
</button>
|
||||
)
|
||||
|
||||
return (
|
||||
<section
|
||||
className={classNames({
|
||||
@ -46,12 +55,7 @@ const AssistantSetting = ({ show }: ISegmentedContentProps) => {
|
||||
maxCount={1}
|
||||
showUploadList={{ showPreviewIcon: false, showRemoveIcon: false }}
|
||||
>
|
||||
<button style={{ border: 0, background: 'none' }} type="button">
|
||||
<PlusOutlined />
|
||||
<div style={{ marginTop: 8 }}>
|
||||
{t('upload', { keyPrefix: 'common' })}
|
||||
</div>
|
||||
</button>
|
||||
{show ? uploadButtion : null}
|
||||
</Upload>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
|
Loading…
x
Reference in New Issue
Block a user