SearchKit - When hiding pager, also hide page count
authorcolemanw <coleman@civicrm.org>
Sun, 24 Sep 2023 12:30:05 +0000 (08:30 -0400)
committercolemanw <coleman@civicrm.org>
Sun, 24 Sep 2023 12:30:05 +0000 (08:30 -0400)
ext/search_kit/ang/crmSearchDisplay/Pager.html

index 97c1e0009373a3f9fba4ac0537cfe772d156d165..f50d93744b6a579dc7aac84e228ccadbfa8c37f8 100644 (file)
@@ -20,7 +20,7 @@
     ></ul>
   </div>
   <div>
-    <div class="form-inline text-right" ng-if="$ctrl.settings.pager.expose_limit">
+    <div class="form-inline text-right" ng-if="$ctrl.settings.pager.expose_limit && (!$ctrl.settings.pager.hide_single || $ctrl.rowCount > $ctrl.limit)">
       <label for="crm-search-results-page-size" >
         {{:: ts('Page Size') }}
       </label>