Keep global tabs selected when viewing individual issue/patch/commit

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2023-05-15 17:07:48 +02:00
parent 11af7bed86
commit 26944d5334
2 changed files with 9 additions and 3 deletions
+6 -2
View File
@@ -73,7 +73,9 @@
revision: undefined,
path: undefined,
}}>
<SquareButton active={activeRoute.params.view.resource === "issues"}>
<SquareButton
active={activeRoute.params.view.resource === "issues" ||
activeRoute.params.view.resource === "issue"}>
<span class="txt-bold">{openIssueCount}</span>
{pluralize("issue", openIssueCount)}
</SquareButton>
@@ -90,7 +92,9 @@
revision: undefined,
path: undefined,
}}>
<SquareButton active={activeRoute.params.view.resource === "patches"}>
<SquareButton
active={activeRoute.params.view.resource === "patches" ||
activeRoute.params.view.resource === "patch"}>
<span class="txt-bold">{openPatchCount}</span>
{pluralize("patch", openPatchCount)}
</SquareButton>
@@ -66,7 +66,9 @@
revision: revision,
search: undefined,
}}>
<SquareButton active={activeRoute.params.view.resource === "history"}>
<SquareButton
active={activeRoute.params.view.resource === "history" ||
activeRoute.params.view.resource === "commits"}>
<span class="txt-bold">{commitCount}</span>
{pluralize("commit", commitCount)}
</SquareButton>