From c7419a44d55611b4f6409fd401a027f9500392ab Mon Sep 17 00:00:00 2001 From: s1to Date: Thu, 9 Jul 2026 16:44:17 +0200 Subject: [PATCH] Bottom-bar module picker routes - Add GET/POST /settings/bottombar to choose the pinned module. --- src/backend/backend.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/backend/backend.js b/src/backend/backend.js index a2cebc6..6c22e0d 100644 --- a/src/backend/backend.js +++ b/src/backend/backend.js @@ -7887,6 +7887,15 @@ router saveConfig(cfg); ctx.redirect(`/modules`); }) + .get("/settings/bottombar", async (ctx) => { + ctx.body = require("../views/main_views").bottomBarPickerView(); + }) + .post("/settings/bottombar", koaBody(), async (ctx) => { + const cfg = getConfig(); + cfg.bottomBarPin = String(ctx.request.body.pin || '').trim(); + saveConfig(cfg); + ctx.redirect('/activity'); + }) .post("/settings/ai", koaBody(), async (ctx) => { const aiPrompt = String(ctx.request.body.ai_prompt || "").trim(); if (aiPrompt.length > 128) { sendErrorPage(ctx, "Prompt too long. Must be 128 characters or fewer.", { status: 400 }); return; }