From 42d366ea4790e92afe48023715cce297f75d2498 Mon Sep 17 00:00:00 2001 From: Meleki Date: Mon, 9 Mar 2026 06:59:03 +0100 Subject: [PATCH] =?UTF-8?q?UI-Polish:=20Telegram-Bot-Page=20und=20Agent-Pa?= =?UTF-8?q?ge=20aufger=C3=A4umt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Telegram-Bot-Page: Webhook-Secret und Webhook-Section immer sichtbar (hidden-Logik entfernt) - Agent-Page: Public-Checkbox in scrollbaren Bereich verschoben, Sichtbarkeit-Label hinzugefügt - Konsistente Bezeichnung: Public → Öffentlich mit Hint-Text - Session-Page: Redundantes Telegram-Label entfernt - Telegram-Bots-Überschrift: Icon entfernt (konsistent mit anderen Sektionen) --- wwwroot/index.html | 43 +++++++++++++-------------- wwwroot/js/pages/telegram-bot-page.js | 11 +------ 2 files changed, 21 insertions(+), 33 deletions(-) diff --git a/wwwroot/index.html b/wwwroot/index.html index 14f9551..09f03e2 100644 --- a/wwwroot/index.html +++ b/wwwroot/index.html @@ -85,7 +85,7 @@
-

Telegram Bots

+

Telegram Bots

@@ -150,7 +150,6 @@
-
Kein Bot zugewiesen
@@ -241,12 +240,13 @@
+ +
-
@@ -323,26 +323,23 @@ Erstelle einen Bot via @BotFather + +
+ + +
+ +
+
+ + + +
+ - -
diff --git a/wwwroot/js/pages/telegram-bot-page.js b/wwwroot/js/pages/telegram-bot-page.js index d1114d1..ccaa799 100644 --- a/wwwroot/js/pages/telegram-bot-page.js +++ b/wwwroot/js/pages/telegram-bot-page.js @@ -8,10 +8,8 @@ registerPage('telegram-bot', { var titleEl = document.getElementById('telegramBotPageTitle'); var nameInput = document.getElementById('tgBotName'); var tokenInput = document.getElementById('tgBotToken'); - var secretRow = document.getElementById('tgBotSecretRow'); var secretInput = document.getElementById('tgBotSecret'); var copySecretBtn = document.getElementById('tgBotCopySecret'); - var webhookSection = document.getElementById('tgBotWebhookSection'); var webhookStatus = document.getElementById('tgBotWebhookStatus'); var webhookRegisterBtn = document.getElementById('tgBotWebhookRegister'); var webhookInfoBtn = document.getElementById('tgBotWebhookInfo'); @@ -35,14 +33,7 @@ registerPage('telegram-bot', { publicCheckbox.checked = bot.isPublic || false; deleteBtn.hidden = false; - // Webhook-Secret anzeigen - if (bot.webhookSecret) { - secretRow.hidden = false; - secretInput.value = bot.webhookSecret; - } - - // Webhook-Section anzeigen - webhookSection.hidden = false; + secretInput.value = bot.webhookSecret || ``; _loadWebhookStatus(bot.botId, webhookStatus); } else { titleEl.textContent = 'Neuer Telegram Bot';