diff --git a/frontend/src/components/Toolbar.svelte b/frontend/src/components/Toolbar.svelte index 4c97363..ae24214 100755 --- a/frontend/src/components/Toolbar.svelte +++ b/frontend/src/components/Toolbar.svelte @@ -26,8 +26,8 @@ - {#if !$disableNew} + {/if} diff --git a/frontend/src/routes/new/+page.server.ts b/frontend/src/routes/new/+page.server.ts index 2bf9c44..ca392f0 100644 --- a/frontend/src/routes/new/+page.server.ts +++ b/frontend/src/routes/new/+page.server.ts @@ -2,7 +2,6 @@ import { error } from "@sveltejs/kit"; export async function load() { if (process.env.DISABLE_NEW?.toLowerCase() === "true") { - console.log("Disabled"); error(404, { message: "Not Found", }); diff --git a/frontend/src/routes/settings/+page.server.ts b/frontend/src/routes/settings/+page.server.ts new file mode 100644 index 0000000..ca392f0 --- /dev/null +++ b/frontend/src/routes/settings/+page.server.ts @@ -0,0 +1,9 @@ +import { error } from "@sveltejs/kit"; + +export async function load() { + if (process.env.DISABLE_NEW?.toLowerCase() === "true") { + error(404, { + message: "Not Found", + }); + } +} \ No newline at end of file