Skip to content

Commit

Permalink
Merge pull request #892 from jmartisk/hide-all-loading
Browse files Browse the repository at this point in the history
Hide the 'loading' bubbles in chatbot samples
  • Loading branch information
geoand authored Sep 16, 2024
2 parents 4859bf7 + 58ed0a9 commit 20ed9ff
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion samples/chatbot-easy-rag/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<dependency>
<groupId>org.mvnpm</groupId>
<artifactId>wc-chatbot</artifactId>
<version>0.1.2</version>
<version>0.2.0</version>
<scope>runtime</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export class DemoChat extends LitElement {

const socket = new WebSocket("ws://" + window.location.host + "/chatbot");
socket.onmessage = function (event) {
chatBot.hideAllLoading();
chatBot.sendMessage(event.data, {
right: false,
sender: {name: 'Bob', id: '007'}
Expand Down
2 changes: 1 addition & 1 deletion samples/chatbot-web-search/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<dependency>
<groupId>org.mvnpm</groupId>
<artifactId>wc-chatbot</artifactId>
<version>0.1.2</version>
<version>0.2.0</version>
<scope>runtime</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export class DemoChat extends LitElement {

const socket = new WebSocket("ws://" + window.location.host + "/chatbot");
socket.onmessage = function (event) {
chatBot.hideAllLoading();
chatBot.sendMessage(event.data, {
right: false,
sender: {name: 'Bob', id: '007'}
Expand Down
2 changes: 1 addition & 1 deletion samples/chatbot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<dependency>
<groupId>org.mvnpm</groupId>
<artifactId>wc-chatbot</artifactId>
<version>0.1.2</version>
<version>0.2.0</version>
<scope>runtime</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export class DemoChat extends LitElement {

const socket = new WebSocket("ws://" + window.location.host + "/chatbot");
socket.onmessage = function (event) {
chatBot.hideAllLoading();
chatBot.sendMessage(event.data, {
right: false,
sender: {name: 'Bob', id: '007'}
Expand Down
2 changes: 1 addition & 1 deletion samples/sql-chatbot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<dependency>
<groupId>org.mvnpm</groupId>
<artifactId>wc-chatbot</artifactId>
<version>0.1.2</version>
<version>0.2.0</version>
<scope>runtime</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export class DemoChat extends LitElement {

const socket = new WebSocket("ws://" + window.location.host + "/chatbot");
socket.onmessage = function (event) {
chatBot.hideAllLoading();
chatBot.sendMessage(event.data, {
right: false,
sender: {name: 'Bob', id: '007'}
Expand Down

0 comments on commit 20ed9ff

Please sign in to comment.