From 8d3bb36982e129ac31b348b89a06b0c4e2097e6d Mon Sep 17 00:00:00 2001 From: bruno Date: Sun, 19 Jul 2026 22:01:34 -0400 Subject: [PATCH] =?UTF-8?q?Remove=20prompt()=20from=20createPage()=20?= =?UTF-8?q?=E2=80=94=20creates=20Untitled=20file=20directly=20in=20correct?= =?UTF-8?q?=20workspace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/base.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/templates/base.html b/app/templates/base.html index eb05ad3..36239a9 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -555,9 +555,7 @@ // ── Workspace context → create workspace item ── if (ctx.wsId > 0) { - var name = prompt('File name:'); - if (!name || !name.trim()) return; - var body = { name: name.trim(), type: 'page' }; + var body = { name: 'Untitled', type: 'page' }; if (ctx.isGitea) body.workspace_id = ctx.wsId; fetch('/api/local-workspace/items', {