mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-09 17:36:15 -08:00
docs(ui): note the PWA limitation of the data-keyed context-menu gate
EPG previews are populated only where supportsEpg (Electron), so the programme-details menu item cannot appear in the PWA today; the data-presence gate is future-proofing, not PWA support (Codex review). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9ca7175bff
commit
9028f919fb
2 files changed
+12
-2
No files matched your search
+6
-1
@@ -873,7 +873,12 @@ export class StalkerLiveStreamLayoutComponent implements OnDestroy {
|
||||
);
|
||||
}
|
||||
|
||||
/** Whether right-click has anything to offer for this row. */
|
||||
/**
|
||||
* Whether right-click has anything to offer for this row. Keys on data
|
||||
* presence rather than runtime capability — but note EPG previews are
|
||||
* currently populated only where `supportsEpg` (Electron), so in the PWA
|
||||
* this stays false until portal EPG previews exist there.
|
||||
*/
|
||||
hasChannelContextMenu(item: StalkerItvChannel): boolean {
|
||||
return (
|
||||
this.supportsEpgMapping ||
|
||||
|
||||
+6
-1
@@ -512,7 +512,12 @@ export class PortalChannelsListComponent implements AfterViewInit, OnDestroy {
|
||||
return this.epgPrograms.get(channel.xtream_id) ?? null;
|
||||
}
|
||||
|
||||
/** Whether right-click has anything to offer for this row. */
|
||||
/**
|
||||
* Whether right-click has anything to offer for this row. Keys on data
|
||||
* presence rather than runtime capability — but note EPG previews are
|
||||
* currently populated only where `supportsEpg` (Electron), so in the PWA
|
||||
* this stays false until portal EPG previews exist there.
|
||||
*/
|
||||
hasChannelContextMenu(item: XtreamChannelListItem): boolean {
|
||||
return this.supportsEpgMapping || this.epgPrograms.has(item.xtream_id);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user