File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
core/deployment/src/main/resources/dev-ui Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,15 @@ export class QwcEmbeddingStore extends LitElement {
4747 < h3 > Search for relevant embeddings</ h3 >
4848 < vaadin-text-area id ="search-text " label ="Search text " required min-length ="1 "> </ vaadin-text-area > < br />
4949 < vaadin-text-field id ="search-limit " label ="Limit " value ="10 " required min-length ="1 "> </ vaadin-text-field > < br />
50- < vaadin-button @click =${ ( ) => this . _findRelevant (
51- this . shadowRoot . getElementById ( 'search-text' ) . value ,
52- this . shadowRoot . getElementById ( 'search-limit' ) . value
53- ) } > Search</ vaadin-button > < br />
50+ < vaadin-button @click =${ ( ) => {
51+ if ( this . shadowRoot . getElementById ( 'search-text' ) . validate ( ) &&
52+ this . shadowRoot . getElementById ( 'search-limit' ) . validate ( ) ) {
53+ this . _findRelevant (
54+ this . shadowRoot . getElementById ( 'search-text' ) . value ,
55+ this . shadowRoot . getElementById ( 'search-limit' ) . value ) ;
56+ }
57+ } } > Search
58+ </ vaadin-button > < br />
5459 ${ this . _relevantEmbeddingsOutput }
5560 ` ;
5661 }
You can’t perform that action at this time.
0 commit comments