Skip to content

Commit

Permalink
Merge pull request #206 from jmartisk/dev-ui-chat-reset
Browse files Browse the repository at this point in the history
Minor Dev UI fix
  • Loading branch information
geoand authored Jan 5, 2024
2 parents e2f7e00 + 134bff5 commit d573e79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/deployment/src/main/resources/dev-ui/qwc-chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ a new system message, you have to use the New conversation button." style="width
var systemMessage = this.shadowRoot.getElementById('system-message').value;
if(systemMessage) {
this._chatHistory = [{type: "System", message: systemMessage}];
} else {
this._chatHistory = [];
}
this.shadowRoot.getElementById('chat-button').disabled = null;
this.jsonRpc.reset({systemMessage: systemMessage});
Expand Down

0 comments on commit d573e79

Please sign in to comment.