From 2f7dc52345f73a7dcebb55e5c136dbcc5470a5ca Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Tue, 13 Feb 2024 10:08:47 -0800
Subject: refactor(message): with reload flag

---
 src/routes/events/groups/+page.svelte | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

(limited to 'src/routes/events/groups/+page.svelte')

diff --git a/src/routes/events/groups/+page.svelte b/src/routes/events/groups/+page.svelte
index 80842d34..b2a5df6b 100644
--- a/src/routes/events/groups/+page.svelte
+++ b/src/routes/events/groups/+page.svelte
@@ -31,17 +31,11 @@
 				{/each}
 			</ul>
 		{:catch}
-			<Message message="" loader="ripple" slot>
-				Error parsing groups. Please
-				<a href={'#'} on:click={() => location.reload()}>try again</a> later.
-			</Message>
+			<Message message="" loader="ripple" slot withReload>Error parsing groups.</Message>
 		{/await}
 	{:else}
 		<Message message="Parsing groups ..." />
 	{/if}
 {:catch}
-	<Message message="" loader="ripple" slot>
-		Error loading groups. Please
-		<a href={'#'} on:click={() => location.reload()}>try again</a> later.
-	</Message>
+	<Message message="" loader="ripple" slot withReload>Error loading groups.</Message>
 {/await}
-- 
cgit v1.2.3

