
@@ -43,10 +56,10 @@
{{ 'chat.answer' | sqxTranslate}}
diff --git a/frontend/src/app/features/content/shared/forms/chat-dialog.component.ts b/frontend/src/app/features/content/shared/forms/chat-dialog.component.ts
index 40c1d6511..6806afbda 100644
--- a/frontend/src/app/features/content/shared/forms/chat-dialog.component.ts
+++ b/frontend/src/app/features/content/shared/forms/chat-dialog.component.ts
@@ -6,6 +6,7 @@
*/
import { Component, ElementRef, EventEmitter, Output, ViewChild } from '@angular/core';
+import { delay } from 'rxjs/operators';
import { AppsState, AuthService, StatefulComponent, TranslationsService } from '@app/shared';
interface State {
@@ -16,7 +17,7 @@ interface State {
chatQuestion: string;
// The answers.
- chatTalk: ReadonlyArray<{ prompt: string; isUser?: boolean }>;
+ chatTalk: ReadonlyArray<{ text: string; type: 'user' | 'bot' | 'system' }>;
}
@Component({
@@ -64,22 +65,34 @@ export class ChatDialogComponent extends StatefulComponent