diff --git a/src/Ombi/ClientApp/src/app/app.component.ts b/src/Ombi/ClientApp/src/app/app.component.ts index 934a6151e..ca4b4262c 100644 --- a/src/Ombi/ClientApp/src/app/app.component.ts +++ b/src/Ombi/ClientApp/src/app/app.component.ts @@ -29,37 +29,37 @@ export class AppComponent implements OnInit { private checkedForUpdate: boolean; constructor(public notificationService: NotificationService, - public authService: AuthService, - private readonly router: Router, - private readonly settingsService: SettingsService, - private readonly jobService: JobService, - public readonly translate: TranslateService, - private readonly identityService: IdentityService, - private readonly platformLocation: PlatformLocation) { - - const base = this.platformLocation.getBaseHrefFromDOM(); - if (base.length > 1) { - __webpack_public_path__ = base + "/dist/"; - } + public authService: AuthService, + private readonly router: Router, + private readonly settingsService: SettingsService, + private readonly jobService: JobService, + public readonly translate: TranslateService, + private readonly identityService: IdentityService, + private readonly platformLocation: PlatformLocation) { + + const base = this.platformLocation.getBaseHrefFromDOM(); + if (base.length > 1) { + __webpack_public_path__ = base + "/dist/"; + } - this.translate.addLangs(["en", "de", "fr", "da", "es", "it", "nl", "sv", "no", "pl", "pt"]); - // this language will be used as a fallback when a translation isn't found in the current language - this.translate.setDefaultLang("en"); + this.translate.addLangs(["en", "de", "fr", "da", "es", "it", "nl", "sv", "no", "pl", "pt"]); + // this language will be used as a fallback when a translation isn't found in the current language + this.translate.setDefaultLang("en"); - // See if we can match the supported langs with the current browser lang - const browserLang: string = translate.getBrowserLang(); - this.translate.use(browserLang.match(/en|fr|da|de|es|it|nl|sv|no|pl|pt/) ? browserLang : "en"); - } + // See if we can match the supported langs with the current browser lang + const browserLang: string = translate.getBrowserLang(); + this.translate.use(browserLang.match(/en|fr|da|de|es|it|nl|sv|no|pl|pt/) ? browserLang : "en"); + } public ngOnInit() { this.user = this.authService.claims(); this.settingsService.getCustomization().subscribe(x => { this.customizationSettings = x; - if(this.customizationSettings.useCustomPage) { + if (this.customizationSettings.useCustomPage) { this.settingsService.getCustomPage().subscribe(c => { this.customPageSettings = c; - if(!this.customPageSettings.title) { + if (!this.customPageSettings.title) { this.customPageSettings.title = "Custom Page"; this.customPageSettings.fontAwesomeIcon = "fa-check"; } @@ -67,7 +67,7 @@ export class AppComponent implements OnInit { } }); this.settingsService.issueEnabled().subscribe(x => this.issuesEnabled = x); - this.settingsService.voteEnabled().subscribe(x => this.voteEnabled =x); + this.settingsService.voteEnabled().subscribe(x => this.voteEnabled = x); this.router.events.subscribe((event: NavigationStart) => { this.currentUrl = event.url; @@ -81,7 +81,7 @@ export class AppComponent implements OnInit { this.jobService.getCachedUpdate().subscribe(x => { this.updateAvailable = x; }, - err => this.checkedForUpdate = true ); + err => this.checkedForUpdate = true); } } }); diff --git a/src/Ombi/ClientApp/src/app/discover/discover.component.html b/src/Ombi/ClientApp/src/app/discover/discover.component.html index 927dc1a98..a1220b7ef 100644 --- a/src/Ombi/ClientApp/src/app/discover/discover.component.html +++ b/src/Ombi/ClientApp/src/app/discover/discover.component.html @@ -1,5 +1,5 @@ -