Lowered the timeout from 8 to 5 seconds
This commit is contained in:
@@ -87,7 +87,7 @@ let has_active_filters = $derived(
|
||||
let show_cache_reset_btn = $state(false);
|
||||
let cache_reset_timer: any = null;
|
||||
|
||||
// Starts/cancels the 8-second countdown based on no_results_no_filters.
|
||||
// Starts/cancels the 7-second countdown based on no_results_no_filters.
|
||||
// $effect only re-runs when the derived VALUE changes (true↔false), not on every
|
||||
// store write — so the timer counts down cleanly without spurious resets.
|
||||
$effect(() => {
|
||||
@@ -100,7 +100,7 @@ $effect(() => {
|
||||
show_cache_reset_btn = false;
|
||||
cache_reset_timer = setTimeout(() => {
|
||||
show_cache_reset_btn = true;
|
||||
}, 8000);
|
||||
}, 5000);
|
||||
} else {
|
||||
show_cache_reset_btn = false;
|
||||
}
|
||||
@@ -531,7 +531,7 @@ if (browser) {
|
||||
class="btn btn-sm preset-tonal-warning m-auto"
|
||||
onclick={handle_cache_reset}>
|
||||
<span class="fas fa-sync-alt m-1"></span>
|
||||
Refresh Meeting Cache
|
||||
Refresh Meeting List Cache
|
||||
</button>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user