mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 02:19:05 +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 MessageInput from '@/components/message-input';
|
||||||
import MessageItem from '@/components/message-item';
|
import MessageItem from '@/components/message-item';
|
||||||
import { useClickDrawer } from '@/components/pdf-drawer/hooks';
|
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 { useSendButtonDisabled } from '@/pages/chat/hooks';
|
||||||
import { Flex, Spin } from 'antd';
|
import { Flex, Spin } from 'antd';
|
||||||
import { forwardRef } from 'react';
|
import { forwardRef } from 'react';
|
||||||
@ -15,7 +15,7 @@ import PdfDrawer from '@/components/pdf-drawer';
|
|||||||
import styles from './index.less';
|
import styles from './index.less';
|
||||||
|
|
||||||
const ChatContainer = () => {
|
const ChatContainer = () => {
|
||||||
const { from, sharedId: conversationId } = useGetSharedChatSearchParams();
|
const { sharedId: conversationId } = useGetSharedChatSearchParams();
|
||||||
const { visible, hideModal, documentId, selectedChunk, clickDocumentButton } =
|
const { visible, hideModal, documentId, selectedChunk, clickDocumentButton } =
|
||||||
useClickDrawer();
|
useClickDrawer();
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ const ChatContainer = () => {
|
|||||||
onPressEnter={handlePressEnter}
|
onPressEnter={handlePressEnter}
|
||||||
sendLoading={sendLoading}
|
sendLoading={sendLoading}
|
||||||
uploadMethod="external_upload_and_parse"
|
uploadMethod="external_upload_and_parse"
|
||||||
showUploadIcon={from === SharedFrom.Chat}
|
showUploadIcon={false}
|
||||||
></MessageInput>
|
></MessageInput>
|
||||||
</Flex>
|
</Flex>
|
||||||
{visible && (
|
{visible && (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user