feat(preferences): section langues a telecharger (defaut fr+en), transcripts filtres cote serveur et watch
CI / build-and-test (push) Successful in 13m50s
CI / build-and-test (push) Successful in 13m50s
This commit is contained in:
@@ -79,7 +79,8 @@ export class HomeComponent {
|
||||
return;
|
||||
}
|
||||
this.busyMore.set(true);
|
||||
this.apiService.getTrendingPage(this.nextCursor()).subscribe(res => {
|
||||
this.apiService.getTrendingPage(this.nextCursor()).subscribe({
|
||||
next: res => {
|
||||
const merged = [...this.trendingVideos(), ...res.items];
|
||||
this.trendingVideos.set(merged);
|
||||
this.nextCursor.set(res.nextCursor || null);
|
||||
@@ -100,6 +101,17 @@ export class HomeComponent {
|
||||
this.notice.set(`Les vidéos ne sont pas disponibles pour le provider "${label}" pour le moment. Réessayez plus tard ou choisissez un autre provider.`);
|
||||
}
|
||||
}
|
||||
},
|
||||
// Never leave the infinite scroll stuck: release flags so scrolling retries.
|
||||
error: () => {
|
||||
this.busyMore.set(false);
|
||||
this.loading.set(false);
|
||||
if (!this.notice()) {
|
||||
this.notice.set(this.trendingVideos().length > 0
|
||||
? 'Le chargement de la suite a échoué. Faites défiler pour réessayer.'
|
||||
: 'Le chargement a échoué. Réessayez plus tard ou changez de fournisseur.');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user