DEV: Missing loading spinner for staff action logs.

DEV: Missing loading spinner for staff action logs.

Follow up to e0c821ebb00aa0b5a1b6c84491df1da4178b5e9c.

diff --git a/app/assets/javascripts/admin/templates/logs/staff-action-logs.hbs b/app/assets/javascripts/admin/templates/logs/staff-action-logs.hbs
index 0c20259..531d98b 100644
--- a/app/assets/javascripts/admin/templates/logs/staff-action-logs.hbs
+++ b/app/assets/javascripts/admin/templates/logs/staff-action-logs.hbs
@@ -98,11 +98,13 @@
       </tbody>
 
     </table>
-  {{else if loading}}
-    {{conditional-loading-spinner condition=loading}}
   {{else}}
     {{i18n 'search.no_results'}}
   {{/if}}
+
+  {{#if loading}}
+    {{conditional-loading-spinner condition=loading}}
+  {{/if}}
 {{/load-more}}
 
 {{/staff-actions}}

GitHub sha: 21876d46

2 Likes

DEV: Remove unnecessary condition.