3x-ui/web
MHSanaei 32b7ada549
subpage: enabled state
Track and surface a subscription's enabled state from backend to frontend so the UI can show inactive subscriptions and use it in active-state logic.

Changes:
- sub/subService.go: track hasEnabledClient, set traffic.Enable, add Enabled to PageData and populate it in BuildPageData.
- sub/subController.go: include enabled in the page context.
- web/html/settings/panel/subscription/subpage.html: emit data-enabled attribute and render an "inactive" tag when disabled.
- web/assets/js/subscription.js: read data-enabled and include it in isActive() checks.

This ensures subscriptions with no enabled clients are marked inactive in the UI and excluded from being considered active.
2026-05-04 23:27:57 +02:00
..
assets subpage: enabled state 2026-05-04 23:27:57 +02:00
controller fix(security): sanitize remote IP headers and escape log viewer output 2026-05-04 16:39:29 +02:00
entity feat: add configurable auto-restart on client auto-disable 2026-05-04 23:19:25 +02:00
global Refactor code and fix linter warnings (#3627) 2026-01-05 05:54:56 +01:00
html subpage: enabled state 2026-05-04 23:27:57 +02:00
job feat: add configurable auto-restart on client auto-disable 2026-05-04 23:19:25 +02:00
locale update dependencies 2026-03-04 13:05:29 +01:00
middleware docs: add comments for all functions 2025-09-20 09:35:50 +02:00
network docs: add comments for all functions 2025-09-20 09:35:50 +02:00
service feat: add configurable auto-restart on client auto-disable 2026-05-04 23:19:25 +02:00
session v2.9.0 2026-04-20 21:43:49 +02:00
translation feat: add configurable auto-restart on client auto-disable 2026-05-04 23:19:25 +02:00
websocket fix: enhance WebSocket stability, resolve XHTTP configurations and fix UI loading shifts (#3997) 2026-04-19 21:01:00 +02:00
web.go DNS outbound: Add rules 2026-04-26 17:34:31 +02:00