mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-05-30 01:55:47 +08:00
### What problem does this PR solve? feat: Pop-up prompt message after modifying the dialog settings #2088 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
0bea7f21ae
commit
fc172b4a79
@ -17,7 +17,7 @@ import { Avatar, Button, Flex, List, Space, Typography } from 'antd';
|
||||
import FileIcon from '../file-icon';
|
||||
import IndentedTreeModal from '../indented-tree/modal';
|
||||
import NewDocumentLink from '../new-document-link';
|
||||
import { AssistantGroupButton, UserGroupButton } from './group-button';
|
||||
// import { AssistantGroupButton, UserGroupButton } from './group-button';
|
||||
import styles from './index.less';
|
||||
|
||||
const { Text } = Typography;
|
||||
@ -111,13 +111,13 @@ const MessageItem = ({
|
||||
)}
|
||||
<Flex vertical gap={8} flex={1}>
|
||||
<Space>
|
||||
{isAssistant ? (
|
||||
{/* {isAssistant ? (
|
||||
<AssistantGroupButton></AssistantGroupButton>
|
||||
) : (
|
||||
<UserGroupButton></UserGroupButton>
|
||||
)}
|
||||
)} */}
|
||||
|
||||
{/* <b>{isAssistant ? '' : nickname}</b> */}
|
||||
<b>{isAssistant ? '' : nickname}</b>
|
||||
</Space>
|
||||
<div
|
||||
className={
|
||||
|
@ -94,7 +94,7 @@ export const useSetNextDialog = () => {
|
||||
if (data.retcode === 0) {
|
||||
queryClient.invalidateQueries({ queryKey: ['fetchDialogList'] });
|
||||
message.success(
|
||||
i18n.t(`message.${params.id ? 'modified' : 'created'}`),
|
||||
i18n.t(`message.${params.dialog_id ? 'modified' : 'created'}`),
|
||||
);
|
||||
}
|
||||
return data?.retcode;
|
||||
|
@ -243,7 +243,7 @@ export const useSendMessageWithSse = (
|
||||
const val = JSON.parse(value?.data || '');
|
||||
const d = val?.data;
|
||||
if (typeof d !== 'boolean') {
|
||||
console.info('data:', d);
|
||||
// console.info('data:', d);
|
||||
setAnswer({
|
||||
...d,
|
||||
conversationId: body?.conversation_id,
|
||||
|
@ -34,6 +34,7 @@ export interface IDialog {
|
||||
description: string;
|
||||
icon: string;
|
||||
id: string;
|
||||
dialog_id?: string;
|
||||
kb_ids: string[];
|
||||
kb_names: string[];
|
||||
language: string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user