Skip to content

Commit af6a133

Browse files
committed
prevent esc on started restream
1 parent 3e640f3 commit af6a133

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/app/channel-tile/channel-tile.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ export class ChannelTileComponent implements OnDestroy, AfterViewInit {
292292
keyboard: false,
293293
});
294294
this.memory.ModalRef.componentInstance.channel = this.channel;
295+
this.memory.ModalRef.componentInstance.name = "RestreamModalComponent";
295296
this.memory.ModalRef.result.then((_) => (this.memory.ModalRef = undefined));
296297
}
297298

src/app/home/home.component.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,11 @@ export class HomeComponent implements AfterViewInit, OnDestroy {
382382

383383
goBackHotkey() {
384384
if (this.memory.ModalRef) {
385-
this.memory.ModalRef.close("close");
385+
if (
386+
this.memory.ModalRef.componentInstance.name != "RestreamModalComponent" ||
387+
!this.memory.ModalRef.componentInstance.started
388+
)
389+
this.memory.ModalRef.close("close");
386390
return;
387391
}
388392
if (this.filters?.group_id || this.filters?.series_id) {

0 commit comments

Comments
 (0)