3x-ui/sub
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
..
default.json dokodemo-door, socks renamed to mixed, tunnel 2025-09-09 13:57:40 +02:00
sub.go feat add clash yaml convert (#3916) 2026-04-19 22:26:13 +02:00
subClashService.go feat: add configurable auto-restart on client auto-disable 2026-05-04 23:19:25 +02:00
subController.go subpage: enabled state 2026-05-04 23:27:57 +02:00
subJsonService.go feat: add configurable auto-restart on client auto-disable 2026-05-04 23:19:25 +02:00
subService.go subpage: enabled state 2026-05-04 23:27:57 +02:00