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