mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
chore: added the app images in the settings for visibility
This commit is contained in:
parent
7442dcf59d
commit
34cdbb8225
2 changed files with 14 additions and 2 deletions
|
@ -101,6 +101,10 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div>
|
||||
<a target="_blank" href='https://play.google.com/store/apps/details?id=com.tidusjar.Ombi&pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'><img width="200px" alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png'/></a>
|
||||
<a target="_blank" href='https://apps.apple.com/us/app/ombi/id1335260043'><img width="155px" alt='Get it on App Store' [src]="appstoreImage"/></a>
|
||||
</div>
|
||||
<h2>News</h2>
|
||||
<div [innerHTML]="newsHtml"></div>
|
||||
</div>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Component, OnInit } from "@angular/core";
|
||||
import { Component, Inject, OnInit } from "@angular/core";
|
||||
import { HubService, SettingsService, SystemService } from "../../services";
|
||||
import { IAbout, IUpdateModel } from "../../interfaces/ISettings";
|
||||
|
||||
|
@ -6,6 +6,7 @@ import { IConnectedUser } from "../../interfaces";
|
|||
import { MatDialog } from "@angular/material/dialog";
|
||||
import { UpdateDialogComponent } from "./update-dialog.component";
|
||||
import { UpdateService } from "../../services/update.service";
|
||||
import { APP_BASE_HREF } from "@angular/common";
|
||||
|
||||
@Component({
|
||||
templateUrl: "./about.component.html",
|
||||
|
@ -17,6 +18,7 @@ export class AboutComponent implements OnInit {
|
|||
public newUpdate: boolean;
|
||||
public connectedUsers: IConnectedUser[];
|
||||
public newsHtml: string;
|
||||
public appstoreImage: string;
|
||||
|
||||
public get usingSqliteDatabase() {
|
||||
if (this.about.ombiDatabaseType.toLowerCase() === 'sqlite'
|
||||
|
@ -33,9 +35,15 @@ export class AboutComponent implements OnInit {
|
|||
private readonly jobService: UpdateService,
|
||||
private readonly hubService: HubService,
|
||||
private readonly systemService: SystemService,
|
||||
private readonly dialog: MatDialog) { }
|
||||
private readonly dialog: MatDialog,
|
||||
@Inject(APP_BASE_HREF) private readonly href:string) { }
|
||||
|
||||
public async ngOnInit() {
|
||||
this.appstoreImage = "../../../images/appstore.svg";
|
||||
const base = this.href;
|
||||
if (base) {
|
||||
this.appstoreImage = "../../.." + base + "/images/appstore.svg";
|
||||
}
|
||||
this.settingsService.about().subscribe(x => this.about = x);
|
||||
this.newsHtml = await this.systemService.getNews().toPromise();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue