mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-11 22:18:57 +08:00
### What problem does this PR solve? Fix: Hide the upload button in the external chat box #2242 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
cb6e9ce164
commit
1053ef5551
@ -1,7 +1,7 @@
|
||||
import MessageInput from '@/components/message-input';
|
||||
import MessageItem from '@/components/message-item';
|
||||
import { useClickDrawer } from '@/components/pdf-drawer/hooks';
|
||||
import { MessageType, SharedFrom } from '@/constants/chat';
|
||||
import { MessageType } from '@/constants/chat';
|
||||
import { useSendButtonDisabled } from '@/pages/chat/hooks';
|
||||
import { Flex, Spin } from 'antd';
|
||||
import { forwardRef } from 'react';
|
||||
@ -15,7 +15,7 @@ import PdfDrawer from '@/components/pdf-drawer';
|
||||
import styles from './index.less';
|
||||
|
||||
const ChatContainer = () => {
|
||||
const { from, sharedId: conversationId } = useGetSharedChatSearchParams();
|
||||
const { sharedId: conversationId } = useGetSharedChatSearchParams();
|
||||
const { visible, hideModal, documentId, selectedChunk, clickDocumentButton } =
|
||||
useClickDrawer();
|
||||
|
||||
@ -79,7 +79,7 @@ const ChatContainer = () => {
|
||||
onPressEnter={handlePressEnter}
|
||||
sendLoading={sendLoading}
|
||||
uploadMethod="external_upload_and_parse"
|
||||
showUploadIcon={from === SharedFrom.Chat}
|
||||
showUploadIcon={false}
|
||||
></MessageInput>
|
||||
</Flex>
|
||||
{visible && (
|
||||
|
Loading…
x
Reference in New Issue
Block a user