fix(drafts): disable the "No login required" toggle on draft-only apps

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.
This commit is contained in:
Diego Imbert
2026-06-07 23:55:30 +02:00
parent 6c758ef3ff
commit 00a28d5eec
@@ -278,7 +278,7 @@
policy.execution_mode = e.detail ? 'anonymous' : 'publisher'
setPublishState()
}}
disabled={!savedApp}
disabled={!savedApp || newApp}
/>
</div>
{#if !savedApp || newApp}