Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Keep global tabs selected when viewing individual issue/patch/commit
Rūdolfs Ošiņš committed 3 years ago
commit 26944d53340a69c93cb300a88e4bf0afff882e79
parent 11af7bed86212ee5a002bb4be9a856d1dbfd62d2
2 files changed +9 -3
modified src/views/projects/Header.svelte
@@ -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>
modified src/views/projects/SourceBrowsingHeader.svelte
@@ -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>