Update issue state icon in the sidebar when changing state

This commit is contained in:
Rūdolfs Ošiņš
2024-11-01 11:10:53 +01:00
parent 8b27966711
commit 2c0aed2b75
+5
View File
@@ -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 {