mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 11:20:36 +08:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user