From 00a28d5eec6d7e6c1152352b868c939a46d70d95 Mon Sep 17 00:00:00 2001 From: Diego Imbert Date: Sun, 7 Jun 2026 23:55:30 +0200 Subject: [PATCH] fix(drafts): disable the "No login required" toggle on draft-only apps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Flipping the toggle called `setPublishState`, which POSTs the new `policy` through `AppService.updateApp` — that handler's `UPDATE app ... RETURNING path` finds nothing on a draft-only path and `not_found_if_none` 404s with "App not found at name …" (apps.rs:1975). Gate the Toggle on `!newApp` too so the user has to deploy once before configuring the publish state. --- .../src/lib/components/apps/editor/AppEditorHeaderDeploy.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/apps/editor/AppEditorHeaderDeploy.svelte b/frontend/src/lib/components/apps/editor/AppEditorHeaderDeploy.svelte index 82f531e792..319bb9fe62 100644 --- a/frontend/src/lib/components/apps/editor/AppEditorHeaderDeploy.svelte +++ b/frontend/src/lib/components/apps/editor/AppEditorHeaderDeploy.svelte @@ -278,7 +278,7 @@ policy.execution_mode = e.detail ? 'anonymous' : 'publisher' setPublishState() }} - disabled={!savedApp} + disabled={!savedApp || newApp} /> {#if !savedApp || newApp}