From 32df8b70b8a98519d1d34578fab8d109e01ebb40 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sun, 17 May 2026 19:05:05 +0200 Subject: [PATCH] fix(clients): gate IP Log on ipLimitEnable + clean access-log dropdown Legacy panel hid the IP Log section when access logging was off; the Vue 3 migration left it gated on isEdit only, so the section showed even when xray's access log was 'none' and nothing was being recorded. Restore the ipLimitEnable gate on the edit modal's IP Log form-item. While here, clean up the Xray Settings access-log dropdown: previously two 'none' entries appeared (an empty value labelled with t('none') and the literal 'none' from the options array). Drop the empty option for access log (the literal 'none' covers it) and relabel the empty option for error log / mask address to t('empty') so they're distinguishable. Co-Authored-By: Claude Opus 4.7 --- frontend/src/pages/clients/ClientFormModal.vue | 2 +- frontend/src/pages/xray/BasicsTab.vue | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/clients/ClientFormModal.vue b/frontend/src/pages/clients/ClientFormModal.vue index ec41b08e..b0553150 100644 --- a/frontend/src/pages/clients/ClientFormModal.vue +++ b/frontend/src/pages/clients/ClientFormModal.vue @@ -339,7 +339,7 @@ async function onSubmit() { {{ t('enable') }} - + {{ t('refresh') }} diff --git a/frontend/src/pages/xray/BasicsTab.vue b/frontend/src/pages/xray/BasicsTab.vue index 196dcb06..6cd709d3 100644 --- a/frontend/src/pages/xray/BasicsTab.vue +++ b/frontend/src/pages/xray/BasicsTab.vue @@ -340,7 +340,6 @@ const localOutboundTestUrl = computed({ @@ -351,7 +350,7 @@ const localOutboundTestUrl = computed({ @@ -362,7 +361,7 @@ const localOutboundTestUrl = computed({