mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
Make the action var in Issue.svelte reactive to the httpd state
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user