From ffc2ac4c8c7b52fda86500a413421a071c506d5a Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Thu, 13 Feb 2025 19:34:15 +0100
Subject: frontend: Add missing loading indicator for statistics page

---
 frontend/src/routes/statistics/+page.svelte | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'frontend/src/routes/statistics/+page.svelte')

diff --git a/frontend/src/routes/statistics/+page.svelte b/frontend/src/routes/statistics/+page.svelte
index 1a5bb27..53c56a4 100644
--- a/frontend/src/routes/statistics/+page.svelte
+++ b/frontend/src/routes/statistics/+page.svelte
@@ -1,5 +1,6 @@
 <script lang="ts">
 	import { statisticsQuery } from '$gql/Queries';
+	import Guard from '$lib/components/Guard.svelte';
 	import Head from '$lib/components/Head.svelte';
 	import Stat from '$lib/statistics/Stat.svelte';
 	import StatGroup from '$lib/statistics/StatGroup.svelte';
@@ -40,4 +41,6 @@
 			<Stat title="Images" value={totals.images / totals.archives} precision={2} />
 		</StatGroup>
 	</div>
+{:else}
+	<Guard result={query} />
 {/if}
-- 
cgit v1.2.3-2-gb3c3

