From 929987e995bcb400258fe69180bc3c26b7d53a98 Mon Sep 17 00:00:00 2001 From: Fulmine Date: Tue, 1 Mar 2022 12:29:21 +0100 Subject: [PATCH] feat: refresh button next to error in lists --- src/lib/group/List.svelte | 10 +++++++++- src/lib/member/List.svelte | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/lib/group/List.svelte b/src/lib/group/List.svelte index 7b88de3f..0e9f3770 100644 --- a/src/lib/group/List.svelte +++ b/src/lib/group/List.svelte @@ -45,6 +45,7 @@ async function fetchGroups() { + err = ""; listLoading = true; try { const res: Group[] = await api().systems(isPublic ? id : "@me").groups.get({ auth: !isPublic, query: { with_members: !isPublic } }); @@ -258,7 +259,14 @@ {:else if err} -{err} + + + {err} + + + + + {:else} diff --git a/src/lib/member/List.svelte b/src/lib/member/List.svelte index 3ba6c6c1..b1ec637e 100644 --- a/src/lib/member/List.svelte +++ b/src/lib/member/List.svelte @@ -44,6 +44,7 @@ }); async function fetchMembers() { + err = ""; listLoading = true; try { const res: Member[] = await api().systems(isPublic ? id : "@me").members.get({ auth: !isPublic }); @@ -260,7 +261,14 @@ {:else if err} -{err} + + + {err} + + + + + {:else}