mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-30 19:40:05 -07:00
fix: fixed trakt image not loading when base url present
This commit is contained in:
parent
6f40ab07e4
commit
c1ac2961d3
5 changed files with 16 additions and 6 deletions
|
@ -1 +1 @@
|
||||||
<img src="{{src}}" (onError)="onError($event)" [class]="class" [id]="id" [style]="style"/>
|
<img src="{{src}}" (error)="onError($event)" [class]="class" [id]="id" [style]="style"/>
|
||||||
|
|
|
@ -14,6 +14,8 @@ a.media-icons img{
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
button.admin-cog{
|
button.admin-cog{
|
||||||
margin-left:40px;
|
margin-left:40px;
|
||||||
color:$ombi-active;
|
color:$ombi-active;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { Component, Input, Output, EventEmitter } from "@angular/core";
|
import { APP_BASE_HREF } from "@angular/common";
|
||||||
|
import { Component, Input, Output, EventEmitter, Inject } from "@angular/core";
|
||||||
import { RequestType } from "../../../../interfaces";
|
import { RequestType } from "../../../../interfaces";
|
||||||
@Component({
|
@Component({
|
||||||
selector: "social-icons",
|
selector: "social-icons",
|
||||||
|
@ -31,6 +32,13 @@ export class SocialIconsComponent {
|
||||||
@Output() onReProcess4KRequest: EventEmitter<any> = new EventEmitter();
|
@Output() onReProcess4KRequest: EventEmitter<any> = new EventEmitter();
|
||||||
|
|
||||||
public RequestType = RequestType;
|
public RequestType = RequestType;
|
||||||
|
public baseUrl: string = "";
|
||||||
|
|
||||||
|
constructor (@Inject(APP_BASE_HREF) public href: string) {
|
||||||
|
if (this.href.length > 1) {
|
||||||
|
this.baseUrl = this.href;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public openDialog() {
|
public openDialog() {
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<div class="plex-buttons">
|
<div class="plex-buttons">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div style="text-align: center; margin-top: 20px">
|
<div style="text-align: center; margin-top: 20px">
|
||||||
<button (click)="requestAuthToken()" mat-raised-button color="primary" class="viewon-btn standard" [disabled]="completed">Request Token <i class="fas fa-key"></i></button>
|
<button (click)="requestAuthToken()" mat-raised-button color="primary" class="viewon-btn standard" [disabled]="completed">Request Token <i class="fa-solid fa-key"></i></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="text-center space-or">OR</p>
|
<p class="text-center space-or">OR</p>
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
<br />
|
<br />
|
||||||
<div class="social-media">
|
<div class="social-media">
|
||||||
<ul class="fa-ul">
|
<ul class="fa-ul">
|
||||||
<li><a href="https://discord.gg/Sa7wNWb" target="_blank"><span class="fa-li"><i class="fab fa-discord"></i></span>Ombi Discord</a>
|
<li><a href="https://discord.gg/Sa7wNWb" target="_blank"><span class="fa-li"><i class="fa-brands fa-discord"></i></span>Ombi Discord</a>
|
||||||
<li><a href="https://github.com/Ombi-app/Ombi" target="_blank"><span class="fa-li"><i class="fab fa-github"></i></span>Ombi Github</a>
|
<li><a href="https://github.com/Ombi-app/Ombi" target="_blank"><span class="fa-li"><i class="fa-brands fa-github"></i></span>Ombi Github</a>
|
||||||
<li><a href="https://docs.ombi.app/" target="_blank"><span class="fa-li"><i class="fas fa-book"></i></span>Ombi Documentation</a>
|
<li><a href="https://docs.ombi.app/" target="_blank"><span class="fa-li"><i class="fa-solid fa-book"></i></span>Ombi Documentation</a>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue