Skip to content

Commit

Permalink
Merge pull request #173 from jmartisk/dev-ui-waiting
Browse files Browse the repository at this point in the history
Add a 'Working' text while waiting for results in Dev UI
  • Loading branch information
geoand authored Dec 20, 2023
2 parents 289ddd8 + e65b222 commit ccc2e25
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class QwcEmbeddingStore extends LitElement {
}

_addEmbedding(id, text, metadata){
this._addEmbeddingConfirmation = '';
this._addEmbeddingConfirmation = html`Working...<br/>`;
this.jsonRpc.add({id: id, text: text, metadata: metadata}).then(jsonRpcResponse => {
if(jsonRpcResponse.result === false) {
this._addEmbeddingConfirmation = html`
Expand All @@ -63,7 +63,7 @@ export class QwcEmbeddingStore extends LitElement {
}

_findRelevant(text, limit){
this._relevantEmbeddingsOutput = '';
this._relevantEmbeddingsOutput = html`Working...<br/>`;
this.jsonRpc.findRelevant({text: text, limit: limit}).then(jsonRpcResponse => {
this._relevantEmbeddingsOutput = html`
<vaadin-grid id="relevant-embeddings" .items=${jsonRpcResponse.result}>
Expand Down

0 comments on commit ccc2e25

Please sign in to comment.