diff --git a/src/Ombi/ClientApp/src/app/media-details/components/movie/movie-details.component.html b/src/Ombi/ClientApp/src/app/media-details/components/movie/movie-details.component.html
index 4b0abbf8a..6e809c90d 100644
--- a/src/Ombi/ClientApp/src/app/media-details/components/movie/movie-details.component.html
+++ b/src/Ombi/ClientApp/src/app/media-details/components/movie/movie-details.component.html
@@ -7,8 +7,26 @@
- 0" (openTrailer)="openDialog()" [imdbId]="movie.imdbId" [twitter]="movie.externalIds.twitterId" [facebook]="movie.externalIds.facebookId"
- [instagram]="movie.externalIds.instagramId" [available]="movie.available" [plexUrl]="movie.plexUrl" [embyUrl]="movie.embyUrl" [jellyfinUrl]="movie.jellyfinUrl">
+ 0"
+ [imdbId]="movie.imdbId"
+ [twitter]="movie.externalIds.twitterId"
+ [facebook]="movie.externalIds.facebookId"
+ [instagram]="movie.externalIds.instagramId"
+ [available]="movie.available"
+ [plexUrl]="movie.plexUrl"
+ [embyUrl]="movie.embyUrl"
+ [jellyfinUrl]="movie.jellyfinUrl"
+ [isAdmin]="isAdmin"
+ [canRequestOnBehalf]="!hasRequest && !movie.available"
+ [canShowAdvanced]="showAdvanced && movieRequest"
+ (openTrailer)="openDialog()"
+ (onRequestBehalf)="openRequestOnBehalf()"
+ (onAdvancedOptions)="openAdvancedOptions()"
+ >
+
@@ -19,7 +37,7 @@
-
diff --git a/src/Ombi/ClientApp/src/app/media-details/components/shared/social-icons/social-icons.component.html b/src/Ombi/ClientApp/src/app/media-details/components/shared/social-icons/social-icons.component.html
index 6107ac9a4..0cde69b8b 100644
--- a/src/Ombi/ClientApp/src/app/media-details/components/shared/social-icons/social-icons.component.html
+++ b/src/Ombi/ClientApp/src/app/media-details/components/shared/social-icons/social-icons.component.html
@@ -24,4 +24,18 @@
+
+
+
+
+
+
diff --git a/src/Ombi/ClientApp/src/app/media-details/components/shared/social-icons/social-icons.component.ts b/src/Ombi/ClientApp/src/app/media-details/components/shared/social-icons/social-icons.component.ts
index 882bf2177..5f98b27df 100644
--- a/src/Ombi/ClientApp/src/app/media-details/components/shared/social-icons/social-icons.component.ts
+++ b/src/Ombi/ClientApp/src/app/media-details/components/shared/social-icons/social-icons.component.ts
@@ -1,12 +1,10 @@
-import { Component, Inject, Input, Output, EventEmitter } from "@angular/core";
-
+import { Component, Input, Output, EventEmitter } from "@angular/core";
@Component({
selector: "social-icons",
templateUrl: "./social-icons.component.html",
styleUrls: ["./social-icons.component.scss"]
})
export class SocialIconsComponent {
-
@Input() homepage: string;
@Input() theMoviedbId: number;
@Input() hasTrailer: boolean;
@@ -20,11 +18,25 @@ export class SocialIconsComponent {
@Input() embyUrl: string;
@Input() jellyfinUrl: string;
@Input() doNotAppend: boolean;
-
+
+ @Input() isAdmin: boolean;
+ @Input() canRequestOnBehalf: boolean;
+ @Input() canShowAdvanced: boolean;
+
@Output() openTrailer: EventEmitter = new EventEmitter();
-
+ @Output() onRequestBehalf: EventEmitter = new EventEmitter();
+ @Output() onAdvancedOptions: EventEmitter = new EventEmitter();
+
public openDialog() {
this.openTrailer.emit();
}
+
+ public openRequestOnBehalf() {
+ this.onRequestBehalf.emit();
+ }
+
+ public openAdvancedOptions() {
+ this.onAdvancedOptions.emit();
+ }
}
diff --git a/src/Ombi/ClientApp/src/app/media-details/components/shared/top-banner/top-banner.component.ts b/src/Ombi/ClientApp/src/app/media-details/components/shared/top-banner/top-banner.component.ts
index ae61e3f3e..06187baf1 100644
--- a/src/Ombi/ClientApp/src/app/media-details/components/shared/top-banner/top-banner.component.ts
+++ b/src/Ombi/ClientApp/src/app/media-details/components/shared/top-banner/top-banner.component.ts
@@ -7,15 +7,14 @@ import { DomSanitizer, SafeStyle } from "@angular/platform-browser";
styleUrls: ["top-banner.component.scss"]
})
export class TopBannerComponent {
-
@Input() title: string;
@Input() releaseDate: Date;
@Input() tagline: string;
@Input() available: boolean;
@Input() background: any;
-
- constructor(private sanitizer:DomSanitizer){}
+
+ constructor(private sanitizer:DomSanitizer){ }
public getBackgroundImage(): SafeStyle {
return this.sanitizer.bypassSecurityTrustStyle(this.background);