feat(frontend): confirm before stopping Xray and offer Start when it is stopped (#7104)

Stop sat next to Restart on the dashboard and fired on the first click. A
mis-click cut every proxy connection, and when the panel itself is reached
through that proxy the only way back was SSH (#7103).

Stop now opens a confirmation with Cancel focused. When Xray is stopped the
first button reads Start instead of Restart and Stop is disabled; in the
crashed state Stop stays enabled, because setting the manual-stop flag is
what halts the crash-recovery restart loop.

Closes #7103
This commit is contained in:
Nikan Zeyaei
2026-11-13 19:33:01 +03:30
committed by GitHub
parent 21aa662629
commit 166d5633cc
16 changed files with 198 additions and 17 deletions
+5
View File
@@ -151,6 +151,11 @@
"xrayStatus": "Xray",
"stopXray": "停止",
"restartXray": "重新啟動",
"startXray": "啟動",
"stopXrayDisabledHint": "Xray 未執行",
"stopXrayConfirmTitle": "停止 Xray?",
"stopXrayConfirmContent": "停止 Xray 將立即中斷所有代理連線。確定要繼續嗎?",
"stopXrayConfirmOk": "停止 Xray",
"xraySwitch": "版本",
"xrayUpdates": "Xray 更新",
"xraySwitchClickDesk": "請謹慎選擇,因為較舊版本可能與當前配置不相容",