From 2c0aed2b758fa7ab7621f4b3dfd6502e39dcf6dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Fri, 1 Nov 2024 11:10:53 +0100 Subject: [PATCH] Update issue state icon in the sidebar when changing state --- src/views/repo/Issue.svelte | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/repo/Issue.svelte b/src/views/repo/Issue.svelte index c53653142..b0c422b82 100644 --- a/src/views/repo/Issue.svelte +++ b/src/views/repo/Issue.svelte @@ -226,6 +226,11 @@ }, opts: { announce: $announce }, }); + // Update sidebar issue icon without reloading the whole issue list. + const issueIndex = issues.findIndex(i => i.id === issue.id); + if (issueIndex !== -1) { + issues[issueIndex].state = state; + } } catch (error) { console.error("Editing reactions failed", error); } finally {