mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Fixed #4190
This commit is contained in:
parent
d23c4c3859
commit
7f74294ae3
2 changed files with 9 additions and 3 deletions
|
@ -63,7 +63,7 @@
|
|||
<div class="col-12">
|
||||
<a href='https://apps.apple.com/us/app/ombi/id1335260043' target="_blank"><img
|
||||
style="margin-left:13px" width="170px" alt='Get it from the App Store'
|
||||
src='../../../images/appstore.svg' /></a>
|
||||
src='{{baseUrl}}/images/appstore.svg' /></a>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<button style="margin-left:13px; margin-top: 20px;" mat-raised-button color="accent" type="button" (click)="openMobileApp($event)">Open Mobile App</button>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Component, OnInit } from "@angular/core";
|
||||
import { Component, Inject, OnInit } from "@angular/core";
|
||||
import { AuthService } from "../../../auth/auth.service";
|
||||
import { TranslateService } from "@ngx-translate/core";
|
||||
import { AvailableLanguages, ILanguage } from "./user-preference.constants";
|
||||
|
@ -6,6 +6,7 @@ import { IdentityService, NotificationService, SettingsService, ValidationServic
|
|||
import { ICustomizationSettings, IUser, UserType } from "../../../interfaces";
|
||||
import { Md5 } from "ts-md5";
|
||||
import { FormBuilder, FormGroup, Validators } from "@angular/forms";
|
||||
import { APP_BASE_HREF } from "@angular/common";
|
||||
|
||||
@Component({
|
||||
templateUrl: "./user-preference.component.html",
|
||||
|
@ -22,6 +23,7 @@ export class UserPreferenceComponent implements OnInit {
|
|||
public selectedCountry: string;
|
||||
public customizationSettings: ICustomizationSettings;
|
||||
public UserType = UserType;
|
||||
public baseUrl: string;
|
||||
|
||||
public passwordForm: FormGroup;
|
||||
|
||||
|
@ -33,9 +35,13 @@ export class UserPreferenceComponent implements OnInit {
|
|||
private readonly identityService: IdentityService,
|
||||
private readonly settingsService: SettingsService,
|
||||
private readonly fb: FormBuilder,
|
||||
private readonly validationService: ValidationService) { }
|
||||
private readonly validationService: ValidationService,
|
||||
@Inject(APP_BASE_HREF) public internalBaseUrl: string) { }
|
||||
|
||||
public async ngOnInit() {
|
||||
if (this.internalBaseUrl.length > 1) {
|
||||
this.baseUrl = this.internalBaseUrl;
|
||||
}
|
||||
const user = this.authService.claims();
|
||||
if (user.name) {
|
||||
this.username = user.name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue