« get me outta code hell

client: fix download progress not showing above preparing - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-18 08:05:42 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-31 12:11:56 -0300
commit8973da6ee1401ea7f0882a8c13f875e8e3f3d5c2 (patch)
tree4c21ed91d44a66690da5b23285477045e28ebeb2 /src
parent4c77ada1015fb374d3775d1aeea4ed9da67323a1 (diff)
client: fix download progress not showing above preparing
Diffstat (limited to 'src')
-rw-r--r--src/static/js/client.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/static/js/client.js b/src/static/js/client.js
index 8e731dfd..124c8414 100644
--- a/src/static/js/client.js
+++ b/src/static/js/client.js
@@ -4084,14 +4084,6 @@ function updateSidebarSearchStatus() {
     return;
   }
 
-  if (state.searchStage === 'preparing') {
-    showSidebarSearchProgress(
-      null,
-      templateContent(info.preparingString));
-
-    return;
-  }
-
   const searchIndexDownloads =
     getSearchWorkerDownloadContext('search-indexes');
 
@@ -4108,6 +4100,14 @@ function updateSidebarSearchStatus() {
     return;
   }
 
+  if (state.searchStage === 'preparing') {
+    showSidebarSearchProgress(
+      null,
+      templateContent(info.preparingString));
+
+    return;
+  }
+
   if (state.searchStage === 'searching') {
     showSidebarSearchProgress(
       null,