From 89ed9be9b2cc6ec51af3a801ab92cc113b8d8440 Mon Sep 17 00:00:00 2001
From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com>
Date: Mon, 17 Mar 2025 11:18:49 +0000
Subject: [PATCH] fix: show `Version` text when xray version is unknown
---
web/html/xui/index.html | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/web/html/xui/index.html b/web/html/xui/index.html
index 9edbad70..0e1c21e2 100644
--- a/web/html/xui/index.html
+++ b/web/html/xui/index.html
@@ -126,7 +126,9 @@
{{ i18n "pages.index.xrayStatus" }}
- v[[ status.xray.version ]]
+
+ v[[ status.xray.version ]]
+
@@ -156,7 +158,9 @@
- v[[ status.xray.version ]]
+
+ [[ status.xray.version != 'Unknown' ? `v${status.xray.version}` : '{{ i18n "pages.index.xraySwitch" }}' ]]
+