From bfe826c18fba788bac83b33ae22f01f870079a1a Mon Sep 17 00:00:00 2001 From: Sanaei Date: Thu, 12 Nov 2026 19:10:19 +0100 Subject: [PATCH] fix(xray): read and write log.logLevel in the Xray basics tab xray-core 26.11.9 (#7329) spells the key log.logLevel and still accepts loglevel. A template written with the new spelling showed "warning" in the panel, and changing the level added a second loglevel key beside it, leaving the core to pick between two values. The select now reads either spelling and saves a single logLevel key. --- frontend/src/pages/xray/basics/BasicsTab.tsx | 7 ++-- frontend/src/test/basics-log-level.test.tsx | 34 ++++++++++++++++++++ 2 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 frontend/src/test/basics-log-level.test.tsx diff --git a/frontend/src/pages/xray/basics/BasicsTab.tsx b/frontend/src/pages/xray/basics/BasicsTab.tsx index 35b55ffdb..9477be321 100644 --- a/frontend/src/pages/xray/basics/BasicsTab.tsx +++ b/frontend/src/pages/xray/basics/BasicsTab.tsx @@ -414,12 +414,15 @@ export default function BasicsTab({ paddings="small" control={