This commit is contained in:
seb
2026-10-08 21:19:15 +02:00
parent 7f988c9d63
commit f91c50ef69

View File

@@ -59,18 +59,12 @@ export default class ChatFab extends PureComponent {
const { isOpen, conversationState, streamPhase, isSending, hasPendingAsk, pendingAsk } = this.state;
const isBusy = conversationState === 'busy' || streamPhase === 'thinking' || streamPhase === 'working' || isSending;
let tooltipTitle = 'KI-Chat öffnen';
let ariaLabel = 'KI-Chat';
if (isOpen) {
tooltipTitle = 'KI-Chat schließen';
ariaLabel = 'KI-Chat schließen';
} else if (hasPendingAsk) {
tooltipTitle = pendingAsk?.question
? `Antwort erforderlich: „${pendingAsk.question}“`
: 'Antwort erforderlich: Das Modell wartet auf Ihre Eingabe';
ariaLabel = 'KI-Chat: Antwort erforderlich';
} else if (isBusy) {
tooltipTitle = 'Modell antwortet gerade…';
ariaLabel = 'KI-Chat: Modell antwortet';
}
@@ -143,7 +137,6 @@ export default class ChatFab extends PureComponent {
/>
)}
<Tooltip title={tooltipTitle} placement="right" arrow>
<Badge
badgeContent={hasPendingAsk ? '?' : undefined}
color={hasPendingAsk ? 'error' : isBusy ? 'warning' : 'default'}
@@ -213,7 +206,6 @@ export default class ChatFab extends PureComponent {
)}
</Fab>
</Badge>
</Tooltip>
</Box>
</Box>
);