Bugfixes + Potential iOS Webtoon Reader Fix (#2650)
This commit is contained in:
parent
56fa393cf0
commit
f660a1cd06
25 changed files with 157 additions and 197 deletions
|
|
@ -193,12 +193,17 @@ export class DashboardComponent implements OnInit {
|
|||
this.cdRef.markForCheck();
|
||||
}
|
||||
|
||||
reloadStream(streamId: number) {
|
||||
reloadStream(streamId: number, onDeck = false) {
|
||||
const index = this.streams.findIndex(s => s.id === streamId);
|
||||
if (index < 0) return;
|
||||
this.streams[index] = {...this.streams[index]};
|
||||
console.log('swapped out stream: ', this.streams[index]);
|
||||
this.cdRef.detectChanges();
|
||||
if (onDeck) {
|
||||
// TODO: Need to figure out a better way to refresh just one stream
|
||||
this.refreshStreams$.next();
|
||||
this.cdRef.markForCheck();
|
||||
} else {
|
||||
this.streams[index] = {...this.streams[index]};
|
||||
this.cdRef.markForCheck();
|
||||
}
|
||||
}
|
||||
|
||||
async handleRecentlyAddedChapterClick(item: RecentlyAddedItem) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue