mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix(epg): show epg overlay for first selected channel
This commit is contained in:
1 parent
e2d8ef47bf
commit
e3c45bdf0b
1 file changed
+2
-6
@@ -38,18 +38,14 @@ export class InfoOverlayComponent implements OnChanges {
|
||||
* @param changes component input changes
|
||||
*/
|
||||
ngOnChanges(changes: SimpleChanges): void {
|
||||
if (changes.channel && !changes.channel.firstChange) {
|
||||
if (changes.channel) {
|
||||
clearTimeout(this.currentTimeout);
|
||||
this.isVisible = true;
|
||||
this.currentTimeout = setTimeout(() => {
|
||||
this.isVisible = false;
|
||||
}, 4000);
|
||||
}
|
||||
if (
|
||||
changes.epgProgram &&
|
||||
changes.epgProgram.currentValue &&
|
||||
!changes.epgProgram.firstChange
|
||||
) {
|
||||
if (changes.epgProgram && changes.epgProgram.currentValue) {
|
||||
const { stop, start } = changes.epgProgram.currentValue;
|
||||
this.setProgramDuration(start, stop);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user