File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
src/Azure.AISearch.WebApp/Pages Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 505505 class =" form-control border-primary"
506506 placeholder =" Search or ask anything"
507507 name =" @nameof(SearchRequest.Query)"
508- v-model =" query"
508+ v-model =" query"
509509 :disabled =" isLoading" />
510- <button class =" btn btn-outline-primary" type =" submit" @click =" submitSearch" :disabled =" isLoading" >
510+ <button class =" btn btn-outline-primary"
511+ type =" button"
512+ @click =" submitSearch"
513+ :disabled =" isLoading" >
514+ <!-- Button content changes based on `isLoading` -->
511515 <span v-if =" !isLoading" ><i class =" bi bi-send" ></i > Send</span >
512- <span v-else ><i class =" spinner-border spinner-border-sm" role =" status" aria-hidden =" true" ></i > Searching...</span >
516+ <span v-else >
517+ <i class =" spinner-border spinner-border-sm" role =" status" aria-hidden =" true" ></i > Searching...
518+ </span >
513519 </button >
514520 </div >
515521
522+ <!-- Optional dynamic status message -->
523+ <div v-if =" isLoading" class =" mt-2 text-primary" >
524+ <i class =" spinner-border spinner-border-sm" role =" status" aria-hidden =" true" ></i > Searching, please wait...
525+ </div >
526+
516527</form >
517528
518529<partial name =" _SearchResponse" model =" Model.SearchResponse" />
You can’t perform that action at this time.
0 commit comments