Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
math_tutor_dev
public_math_tutor
Commits
1d66ddd3
Commit
1d66ddd3
authored
Mar 04, 2026
by
Kantz
Browse files
chat auswahl deaktivierbar
parent
fdd09330
Changes
2
Show whitespace changes
Inline
Side-by-side
math-tutor/frontend/.env-example
View file @
1d66ddd3
VITE_FRONTEND_LANG="de"
VITE_SHOW_CHATS_BUTTON="true"
math-tutor/frontend/src/pages/ChatPage.tsx
View file @
1d66ddd3
...
...
@@ -91,6 +91,11 @@ const toRetrievedDoc = (source: ContextSource, index: number): RetrievedDoc => (
});
export
default
function
ChatPage
()
{
const
showChatsButton
=
String
(
import
.
meta
.
env
.
VITE_SHOW_CHATS_BUTTON
??
"
true
"
)
.
trim
()
.
toLowerCase
()
!==
"
false
"
;
const
navigate
=
useNavigate
();
const
{
chatSessionId
,
...
...
@@ -649,6 +654,7 @@ export default function ChatPage() {
return
(
<
div
className
=
"app-shell"
>
<
header
className
=
"app-header"
>
{
showChatsButton
?
(
<
button
type
=
"button"
className
=
"btn sidebar-toggle"
...
...
@@ -656,6 +662,7 @@ export default function ChatPage() {
>
{
t
(
"
chats
"
)
}
</
button
>
)
:
null
}
<
div
className
=
"brand"
>
<
span
className
=
"brand-mark"
>
SUM
</
span
>
<
div
className
=
"brand-text"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment