Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Update issue state icon in the sidebar when changing state
Rūdolfs Ošiņš committed 1 year ago
commit 2c0aed2b758fa7ab7621f4b3dfd6502e39dcf6dc
parent 8b27966711c32575aff386a77547c4f7af58212a
1 file changed +5 -0
modified 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 {