From e65b2221f2bc482557f41c5180ac36d413a762b6 Mon Sep 17 00:00:00 2001 From: Jan Martiska Date: Wed, 20 Dec 2023 12:49:03 +0100 Subject: [PATCH] Add a 'Working' text while waiting for results in Dev UI --- .../src/main/resources/dev-ui/qwc-embedding-store.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/deployment/src/main/resources/dev-ui/qwc-embedding-store.js b/core/deployment/src/main/resources/dev-ui/qwc-embedding-store.js index a2fe714c9..9944c4829 100644 --- a/core/deployment/src/main/resources/dev-ui/qwc-embedding-store.js +++ b/core/deployment/src/main/resources/dev-ui/qwc-embedding-store.js @@ -46,7 +46,7 @@ export class QwcEmbeddingStore extends LitElement { } _addEmbedding(id, text, metadata){ - this._addEmbeddingConfirmation = ''; + this._addEmbeddingConfirmation = html`Working...
`; this.jsonRpc.add({id: id, text: text, metadata: metadata}).then(jsonRpcResponse => { if(jsonRpcResponse.result === false) { this._addEmbeddingConfirmation = html` @@ -63,7 +63,7 @@ export class QwcEmbeddingStore extends LitElement { } _findRelevant(text, limit){ - this._relevantEmbeddingsOutput = ''; + this._relevantEmbeddingsOutput = html`Working...
`; this.jsonRpc.findRelevant({text: text, limit: limit}).then(jsonRpcResponse => { this._relevantEmbeddingsOutput = html`