mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(core): do not show AI avatar during generating (#11363)
> CLOSE BS-2989
This commit is contained in:
@@ -70,10 +70,6 @@ export class ChatMessageAssistant extends WithDisposable(ShadowlessElement) {
|
||||
renderContent() {
|
||||
const { host, item, isLast, status, error } = this;
|
||||
|
||||
if (isLast && status === 'loading') {
|
||||
return html`<ai-loading></ai-loading>`;
|
||||
}
|
||||
|
||||
const state = isLast
|
||||
? status !== 'loading' && status !== 'transmitting'
|
||||
? 'finished'
|
||||
@@ -143,6 +139,12 @@ export class ChatMessageAssistant extends WithDisposable(ShadowlessElement) {
|
||||
}
|
||||
|
||||
protected override render() {
|
||||
const { isLast, status } = this;
|
||||
|
||||
if (isLast && status === 'loading') {
|
||||
return html`<ai-loading></ai-loading>`;
|
||||
}
|
||||
|
||||
return html`
|
||||
${this.renderHeader()}
|
||||
<div class="item-wrapper">${this.renderContent()}</div>
|
||||
|
||||
Reference in New Issue
Block a user