mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-29 19:18:30 -07:00
Fixed the issue where when enabling "Do not display available content" and you have it all, the posters appear large.
This commit is contained in:
parent
216c59dfc1
commit
af58bbbe13
1 changed files with 20 additions and 18 deletions
|
@ -70,25 +70,27 @@ export class CarouselListComponent implements OnInit {
|
||||||
this.discoverOptions = DiscoverOption[DiscoverOption[localDiscoverOptions]];
|
this.discoverOptions = DiscoverOption[DiscoverOption[localDiscoverOptions]];
|
||||||
}
|
}
|
||||||
|
|
||||||
var moviePromise: Promise<void>;
|
while(this.discoverResults.length < 14) {
|
||||||
var tvPromise: Promise<void>;
|
var moviePromise: Promise<void>;
|
||||||
switch (this.discoverOptions) {
|
var tvPromise: Promise<void>;
|
||||||
case DiscoverOption.Combined:
|
switch (this.discoverOptions) {
|
||||||
moviePromise = this.loadMovies();
|
case DiscoverOption.Combined:
|
||||||
tvPromise = this.loadTv();
|
moviePromise = this.loadMovies();
|
||||||
break;
|
tvPromise = this.loadTv();
|
||||||
case DiscoverOption.Movie:
|
break;
|
||||||
moviePromise = this.loadMovies();
|
case DiscoverOption.Movie:
|
||||||
break;
|
moviePromise = this.loadMovies();
|
||||||
case DiscoverOption.Tv:
|
break;
|
||||||
tvPromise = this.loadTv();
|
case DiscoverOption.Tv:
|
||||||
break;
|
tvPromise = this.loadTv();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
await moviePromise;
|
||||||
|
await tvPromise;
|
||||||
|
|
||||||
|
this.createInitialModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
await moviePromise;
|
|
||||||
await tvPromise;
|
|
||||||
|
|
||||||
this.createInitialModel();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public async toggleChanged(event: MatButtonToggleChange) {
|
public async toggleChanged(event: MatButtonToggleChange) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue