u
This commit is contained in:
@@ -1208,47 +1208,11 @@ export default class ChatDrawer extends PureComponent {
|
||||
} = this.state;
|
||||
|
||||
if (loadingConversations && conversations.length === 0) {
|
||||
return (
|
||||
<Box sx={{ flexGrow: 1, display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', p: 3, gap: 2 }}>
|
||||
<CircularProgress size={32} />
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
Lade Konversationen…
|
||||
</Typography>
|
||||
</Box>
|
||||
);
|
||||
return (<></>)
|
||||
}
|
||||
|
||||
if (conversations.length === 0 && !draftConversation) {
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
flexGrow: 1,
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
p: 4,
|
||||
textAlign: 'center',
|
||||
gap: 2,
|
||||
}}
|
||||
>
|
||||
<AutoAwesomeRoundedIcon sx={{ fontSize: 44, color: 'primary.main', opacity: 0.85 }} />
|
||||
<Typography variant="h6" fontWeight={700}>
|
||||
Willkommen im Chat
|
||||
</Typography>
|
||||
<Typography variant="body2" color="text.secondary" sx={{ maxWidth: 280 }}>
|
||||
Starte eine Unterhaltung mit dem KI-Modell, um Fragen zu stellen oder Daten abzufragen.
|
||||
</Typography>
|
||||
<Button
|
||||
variant="contained"
|
||||
startIcon={<AddRoundedIcon />}
|
||||
onClick={this.handleNewChat}
|
||||
sx={{ borderRadius: 2, mt: 1 }}
|
||||
>
|
||||
Neuen Chat starten
|
||||
</Button>
|
||||
</Box>
|
||||
);
|
||||
return (<></>)
|
||||
}
|
||||
|
||||
const pendingAsk = this.getPendingAskUser();
|
||||
|
||||
Reference in New Issue
Block a user