diff --git a/src/Ombi/ClientApp/app/login/login.component.ts b/src/Ombi/ClientApp/app/login/login.component.ts
index 357a8ca9f..d65bf0264 100644
--- a/src/Ombi/ClientApp/app/login/login.component.ts
+++ b/src/Ombi/ClientApp/app/login/login.component.ts
@@ -1,4 +1,4 @@
-import { Component, OnInit } from "@angular/core";
+import { AfterViewInit, Component, OnDestroy, OnInit } from "@angular/core";
import { FormBuilder, FormGroup, Validators } from "@angular/forms";
import { ActivatedRoute, Router } from "@angular/router";
import { TranslateService } from "@ngx-translate/core";
@@ -13,11 +13,14 @@ import { StatusService } from "../services";
import { DomSanitizer } from "@angular/platform-browser";
import { ImageService } from "../services";
+import { fadeInOutAnimation } from "../animations/fadeinout";
+
@Component({
templateUrl: "./login.component.html",
+ animations: [fadeInOutAnimation],
styleUrls: ["./login.component.scss"],
})
-export class LoginComponent implements OnInit {
+export class LoginComponent implements AfterViewInit, OnDestroy, OnInit {
public form: FormGroup;
public customizationSettings: ICustomizationSettings;
@@ -102,4 +105,24 @@ export class LoginComponent implements OnInit {
}, err => this.notify.error(this.errorBody));
});
}
+
+ public ngOnDestroy() {
+ setTimeout(() => {
+ this.images.getRandomBackground().subscribe(x => {
+ this.background = "";
+ });
+ }, 1000);
+ setTimeout(() => {
+ this.images.getRandomBackground().subscribe(x => {
+ this.background = this.sanitizer
+ .bypassSecurityTrustStyle("linear-gradient(-10deg, transparent 20%, rgba(0,0,0,0.7) 20.0%, rgba(0,0,0,0.7) 80.0%, transparent 80%), url(" + x.url + ")");
+ });
+ }, 1000);
+ }
+
+ public ngAfterViewInit() {
+ setInterval(() => {
+ this.ngOnDestroy();
+ }, 10000);
+ }
}
diff --git a/src/Ombi/Ombi.csproj b/src/Ombi/Ombi.csproj
index 0c2c73360..766404941 100644
--- a/src/Ombi/Ombi.csproj
+++ b/src/Ombi/Ombi.csproj
@@ -92,5 +92,13 @@
+
+
+
+
+
+
+
+
diff --git a/src/Ombi/webpack.config.vendor.ts b/src/Ombi/webpack.config.vendor.ts
index d4fe38c3a..b50e784f4 100644
--- a/src/Ombi/webpack.config.vendor.ts
+++ b/src/Ombi/webpack.config.vendor.ts
@@ -80,7 +80,7 @@ module.exports = (env: any) => {
},
plugins: [
new webpack.ProvidePlugin({ $: "jquery", jQuery: "jquery", Hammer: "hammerjs/hammer" }), // Global identifiers
- new webpack.ContextReplacementPlugin(/\@angular(\\|\/)core(\\|\/)esm5/, path.join(__dirname, './client')), // Workaround for https://github.com/angular/angular/issues/20357
+ new webpack.ContextReplacementPlugin(/\@angular(\\|\/)core(\\|\/)esm5/, path.join(__dirname, "./client")), // Workaround for https://github.com/angular/angular/issues/20357
new webpack.ContextReplacementPlugin(/\@angular\b.*\b(bundles|linker)/, path.join(__dirname, "./ClientApp")), // Workaround for https://github.com/angular/angular/issues/11580
new webpack.ContextReplacementPlugin(/angular(\\|\/)core(\\|\/)@angular/, path.join(__dirname, "./ClientApp")), // Workaround for https://github.com/angular/angular/issues/14898
extractCSS,