mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Prefix Khoj page breadcrumbs to chat page title for orientation
Allows tab search by looking at standard prefix. Still allows page title based identification of different Khoj chat sessions
This commit is contained in:
parent
6a9865ace7
commit
5541bc09c8
1 changed files with 3 additions and 2 deletions
|
@ -103,9 +103,10 @@ function ChatBodyData(props: ChatBodyDataProps) {
|
|||
}
|
||||
|
||||
export default function Chat() {
|
||||
const defaultTitle = 'Khoj AI - Chat';
|
||||
const [chatOptionsData, setChatOptionsData] = useState<ChatOptions | null>(null);
|
||||
const [isLoading, setLoading] = useState(true);
|
||||
const [title, setTitle] = useState('Khoj AI - Chat');
|
||||
const [title, setTitle] = useState(defaultTitle);
|
||||
const [conversationId, setConversationID] = useState<string | null>(null);
|
||||
const [messages, setMessages] = useState<StreamMessage[]>([]);
|
||||
const [queryToProcess, setQueryToProcess] = useState<string>('');
|
||||
|
@ -232,7 +233,7 @@ export default function Chat() {
|
|||
return (
|
||||
<div className={styles.main + " " + styles.chatLayout}>
|
||||
<title>
|
||||
{title}
|
||||
{`${defaultTitle}${(!!title && title !== defaultTitle)? `: ${title}` : ''}`}
|
||||
</title>
|
||||
{
|
||||
!isMobileWidth &&
|
||||
|
|
Loading…
Reference in a new issue