From 0505055e4da99196111b6c8fcee6f013647a6160 Mon Sep 17 00:00:00 2001 From: Mukan Erkin Date: Sun, 19 Apr 2026 07:47:35 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20mod=20de=C4=9Fi=C5=9Fiminde=20her=20iki?= =?UTF-8?q?=20y=C3=B6nde=20de=20uyar=C4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/web/index.html b/src/web/index.html index 708c6ca..a3e4f96 100644 --- a/src/web/index.html +++ b/src/web/index.html @@ -263,9 +263,8 @@ function updateModeUI() { async function switchMode(mode) { if (mode === currentMode) return; - if (mode === 'live') { - if (!confirm('Canlı moda geçilecek. Çalışan tüm botlar durdurulacak. Devam edilsin mi?')) return; - } + const label = mode === 'live' ? 'canlı' : 'testnet'; + if (!confirm(`${label.charAt(0).toUpperCase() + label.slice(1)} moda geçilecek. Çalışan tüm botlar durdurulacak. Devam edilsin mi?`)) return; await api('POST', '/mode', { mode }); currentMode = mode; updateModeUI();