FIX: Disable buttons when loading more results on full page search.

FIX: Disable buttons when loading more results on full page search.

Follow up to d50deac676d5ffa7edbd7a4cf006af2a26309c60.

diff --git a/app/assets/javascripts/discourse/templates/full-page-search.hbs b/app/assets/javascripts/discourse/templates/full-page-search.hbs
index 6b4210a..627be51 100644
--- a/app/assets/javascripts/discourse/templates/full-page-search.hbs
+++ b/app/assets/javascripts/discourse/templates/full-page-search.hbs
@@ -5,7 +5,7 @@
     {{#unless site.mobileView}}
       <div class="search-bar">
         {{search-text-field value=searchTerm class="full-page-search search no-blur search-query" enter=(action "search") hasAutofocus=hasAutofocus}}
-        {{d-button action=(action "search") icon="search" class="btn-primary search-cta" disabled=searching}}
+        {{d-button action=(action "search") icon="search" class="btn-primary search-cta" disabled=searchButtonDisabled}}
       </div>
     {{/unless}}
 
@@ -168,7 +168,7 @@
     {{#if site.mobileView}}
       <div class="search-bar">
         {{search-text-field value=searchTerm class="full-page-search search no-blur search-query" enter=(action "search") hasAutofocus=hasAutofocus}}
-        {{d-button action=(action "search") icon="search" class="btn-primary search-cta" disabled=searching}}
+        {{d-button action=(action "search") icon="search" class="btn-primary search-cta" disabled=searchButtonDisabled}}
       </div>
     {{/if}}
 
@@ -197,7 +197,7 @@
           action=(action "search")
           icon="search"
           class="btn-primary search-cta"
-          disabled=searching}}
+          disabled=searchButtonDisabled}}
       </div>
     {{/if}}
   </div>

GitHub sha: 8d1709f6

1 Like