3x-ui/web/assets/js
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
..
model feat: add configurable auto-restart on client auto-disable 2026-05-04 23:19:25 +02:00
util kcp: noise, header-custom, sudoku 2026-04-27 01:28:06 +02:00
axios-init.js Some fixes and improvements (#1997) 2024-03-11 01:01:24 +03:30
subscription.js subpage: enabled state 2026-05-04 23:27:57 +02:00
websocket.js Enhance WebSocket client connection logic and improve event listener management (#3636) 2026-01-18 15:38:57 +01:00