mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2024-12-05 02:41:32 +00:00
Drain message queue on typing indicator click
This commit is contained in:
parent
a3993e8b87
commit
f17fe18cef
@ -9,9 +9,11 @@
|
||||
</div>
|
||||
<div class="tfw-grid-message-body" [innerHtml]="message.message"></div>
|
||||
</div>
|
||||
<div *ngIf="showTypingIndicator" class="tfw-grid-message jumping-circle-container">
|
||||
<div class="jumping-circle" id="jc1"></div>
|
||||
<div class="jumping-circle" id="jc2"></div>
|
||||
<div class="jumping-circle" id="jc3"></div>
|
||||
</div>
|
||||
<div *ngIf="showTypingIndicator"
|
||||
class="tfw-grid-message jumping-circle-container"
|
||||
(click)="drainMessageQueue()">
|
||||
<div class="jumping-circle" id="jc1"></div>
|
||||
<div class="jumping-circle" id="jc2"></div>
|
||||
<div class="jumping-circle" id="jc3"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -59,4 +59,10 @@ export class MessagesComponent implements OnInit {
|
||||
convertMarkdownToHTML(text: string) {
|
||||
return this.markdownService.convertToHtml(text);
|
||||
}
|
||||
|
||||
drainMessageQueue() {
|
||||
this.websocketService.send({
|
||||
'key': 'message.queue.drain'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user