diff --git a/CHANGELOG.md b/CHANGELOG.md index 53bde0c1..9b620941 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- When selecting an EPG source for a channel, the EPG source dropdown now only lists enabled (active) EPGs, sorted alphabetically. - Channels page default splitter ratio changed from 50/50 to 60/40 (channels/streams) so all channel action buttons are visible without scrolling on 1080p displays. - Frontend component refactoring and cleanup — Thanks [@nick4810](https://github.com/nick4810) - `FloatingVideo`, `SeriesModal`, `VODModal`, `SystemEvents`, `M3URefreshNotification`, and `NotificationCenter` significantly reduced in size by separating business logic into dedicated utility modules under `utils/components/` (`FloatingVideoUtils.js`, `SeriesModalUtils.js`, `VODModalUtils.js`, `NotificationCenterUtils.js`). diff --git a/frontend/src/components/forms/Channel.jsx b/frontend/src/components/forms/Channel.jsx index 379825a0..3a057614 100644 --- a/frontend/src/components/forms/Channel.jsx +++ b/frontend/src/components/forms/Channel.jsx @@ -955,10 +955,13 @@ const ChannelForm = ({ channel = null, isOpen, onClose }) => { label="Source" value={selectedEPG} onChange={setSelectedEPG} - data={Object.values(epgs).map((epg) => ({ - value: `${epg.id}`, - label: epg.name, - }))} + data={Object.values(epgs) + .filter((epg) => epg.is_active) + .sort((a, b) => a.name.localeCompare(b.name)) + .map((epg) => ({ + value: `${epg.id}`, + label: epg.name, + }))} size="xs" mb="xs" />