mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-26 23:20:35 +08:00
Update issue state icon in the sidebar when changing state
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user