Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Make the action var in Issue.svelte reactive to the httpd state
Sebastian Martinez committed 2 years ago
commit d91591c90860a7319aab94297858b1c1d322573c
parent 0cd42908e544ed27bb185006cbcb7d2e2504e60b
1 file changed +2 -1
modified src/views/projects/Issue.svelte
@@ -32,7 +32,8 @@
  const rawPath = utils.getRawBasePath(projectId, baseUrl, projectHead);
  const api = new HttpdClient(baseUrl);

-
  const action: "create" | "edit" | "view" =
+
  let action: "edit" | "view";
+
  $: action =
    $httpdStore.state === "authenticated" && utils.isLocal(baseUrl.hostname)
      ? "edit"
      : "view";