Make issues/patches tab counters reactive

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2023-07-25 15:47:06 +02:00
parent 8f4b788a65
commit 69d2f9bff9
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -57,7 +57,7 @@
}
const stateOptions: IssueState["status"][] = ["open", "closed"];
const options = stateOptions.map<Tab>(s => ({
$: options = stateOptions.map<Tab>(s => ({
value: s,
title: `${issueCounters[s]} ${s}`,
disabled: issueCounters[s] === 0,
+2 -1
View File
@@ -65,7 +65,8 @@
"archived",
"merged",
];
const options = stateOptions.map<Tab>(s => ({
$: options = stateOptions.map<Tab>(s => ({
value: s,
title: `${patchCounters[s]} ${s}`,
disabled: patchCounters[s] === 0,