fix for endless loading on /read
authorPhiTux <redacted>
Wed, 8 Oct 2025 10:46:12 +0000 (12:46 +0200)
committerPhiTux <redacted>
Wed, 8 Oct 2025 10:46:12 +0000 (12:46 +0200)
frontend/src/routes/(authed)/read/+page.svelte

index 5c6f5664301a555cbf3a2d1f33eb9f1e05ea807d..eb03159f23c4d12c0e12c634963db9d1f048ede8 100644 (file)
                }
        });
 
+       let tagsInitiallyLoaded = false;
        $effect(() => {
-               if ($tagsLoaded) {
+               if ($tagsLoaded && !tagsInitiallyLoaded) {
+                       tagsInitiallyLoaded = true;
                        loadMonthForReading();
                }
        });
                isLoadingMonthForReading = true;
                imageSizeCalculated = false;
 
+               logs = [];
+
                axios
                        .get(API_URL + '/logs/loadMonthForReading', {
                                params: {
                        <div class="d-flex align-items-center justify-content-center h-100">
                                <div class="glass p-5 rounded-5 no-entries">
                                        {#if isLoadingMonthForReading}
-                                               <span class="spinner-border spinner-border-lg" role="status" aria-hidden="true"></span>
+                                               <div class="spinner-border spinner-border-lg" role="status">
+                                                       <span class="visually-hidden">Loading...</span>
+                                               </div>
                                        {:else}
                                                <span id="no-entries">{$t('read.no_entries')}</span>
                                        {/if}
git clone https://git.99rst.org/PROJECT