mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-22 14:13:36 -07:00
chore: ensure that the re-try also sets the base url correctly
This commit is contained in:
parent
55d0ae9c76
commit
7ff3d345d4
1 changed files with 6 additions and 6 deletions
|
@ -24,9 +24,9 @@ import { APP_BASE_HREF } from "@angular/common";
|
||||||
|
|
||||||
public baseUrl: string = "";
|
public baseUrl: string = "";
|
||||||
|
|
||||||
public defaultTv = "images/default_tv_poster.png";
|
public defaultTv = "/images/default_tv_poster.png";
|
||||||
private defaultMovie = "images/default_movie_poster.png";
|
private defaultMovie = "/images/default_movie_poster.png";
|
||||||
private defaultMusic = "images/default-music-placeholder.png";
|
private defaultMusic = "i/mages/default-music-placeholder.png";
|
||||||
|
|
||||||
constructor (@Inject(APP_BASE_HREF) public href: string) {
|
constructor (@Inject(APP_BASE_HREF) public href: string) {
|
||||||
if (this.href.length > 1) {
|
if (this.href.length > 1) {
|
||||||
|
@ -38,13 +38,13 @@ import { APP_BASE_HREF } from "@angular/common";
|
||||||
// set to a placeholder
|
// set to a placeholder
|
||||||
switch(this.type) {
|
switch(this.type) {
|
||||||
case RequestType.movie:
|
case RequestType.movie:
|
||||||
event.target.src = this.defaultMovie;
|
event.target.src = this.baseUrl + this.defaultMovie;
|
||||||
break;
|
break;
|
||||||
case RequestType.tvShow:
|
case RequestType.tvShow:
|
||||||
event.target.src = this.defaultTv;
|
event.target.src = this.baseUrl + this.defaultTv;
|
||||||
break;
|
break;
|
||||||
case RequestType.album:
|
case RequestType.album:
|
||||||
event.target.src = this.defaultMusic;
|
event.target.src = this.baseUrl + this.defaultMusic;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue