Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Update sidebar when editing issue title
Rūdolfs Ošiņš committed 1 year ago
commit 5d621461b476cda437c5f04b307a845a4df0bd9d
parent e98c146c2539edbf67b94f09ed6a2574f5f04c7e
1 file changed +6 -1
modified src/views/repo/Issue.svelte
@@ -178,8 +178,13 @@
        },
        opts: { announce: $announce },
      });
-
      editingTitle = false;
      issue.title = updatedTitle;
+
      // Update sidebar issue title without reloading the whole issue list.
+
      const issueIndex = issues.findIndex(i => i.id === issue.id);
+
      if (issueIndex !== -1) {
+
        issues[issueIndex].title = updatedTitle;
+
      }
+
      editingTitle = false;
    } catch (error) {
      if (error instanceof Error) {
        console.error("Issue editing failed: ", error);