mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
fixed some small issues on the ombi settings page
This commit is contained in:
parent
fdd856bb9f
commit
cbd4cee9aa
3 changed files with 35 additions and 32 deletions
|
@ -6,15 +6,15 @@
|
|||
<form novalidate [formGroup]="form" (ngSubmit)="onSubmit(form)">
|
||||
<div class="col-md-12 col-12 col-sm-12">
|
||||
<div class="md-form-field">
|
||||
<mat-form-field appearance="outline" floatLabel=always>
|
||||
<mat-form-field appearance="outline" >
|
||||
<mat-label>Base URL</mat-label>
|
||||
<input matInput placeholder="Base Url" formControlName="baseUrl">
|
||||
<input matInput formControlName="baseUrl">
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div class="md-form-field">
|
||||
<mat-form-field appearance="outline" floatLabel=always>
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>Api Key</mat-label>
|
||||
<input matInput id="ApiKey" name="ApiKey" placeholder="Api Key" formControlName="apiKey" readonly="readonly">
|
||||
<input matInput id="ApiKey" name="ApiKey" formControlName="apiKey" readonly="readonly">
|
||||
<button type="button" matSuffix (click)="refreshApiKey()" style="display:inline-block;">
|
||||
<mat-icon class="fa fa-refresh"></mat-icon>
|
||||
</button>
|
||||
|
@ -41,19 +41,19 @@
|
|||
</mat-checkbox>
|
||||
</div>
|
||||
<div>
|
||||
<mat-checkbox formControlName="collectAnalyticData" matTooltip="This will allow us to have a better understanding of the userbase so we know what we should be supporting">
|
||||
<mat-checkbox formControlName="collectAnalyticData" matTooltip="This will allow us to have a better understanding of the userbase so we know what we should be supporting (Uses Google Analytics)">
|
||||
Allow us to collect anonymous analytical data e.g. browser used
|
||||
</mat-checkbox>
|
||||
</div>
|
||||
<div>
|
||||
<!-- <div>
|
||||
<mat-checkbox formControlName="disableHealthChecks">
|
||||
Disable the health checks page
|
||||
<a href="/healthchecks-ui" target="_blank">/healthchecks-ui</a>
|
||||
</mat-checkbox>
|
||||
</div>
|
||||
</div> -->
|
||||
<div>
|
||||
<mat-form-field *ngIf="langauges">
|
||||
<mat-select placeholder="Language" formControlName="defaultLanguageCode">
|
||||
<mat-select matTooltip="This is the default site language for search results, the user can override this in their preferences page" placeholder="Language" formControlName="defaultLanguageCode">
|
||||
<mat-option>--</mat-option>
|
||||
<mat-option *ngFor="let lang of langauges" [value]="lang.code">
|
||||
{{lang.nativeName}}
|
||||
|
|
|
@ -5,7 +5,7 @@ import { ILanguageRefine, IOmbiSettings } from "../../interfaces";
|
|||
import { NotificationService } from "../../services";
|
||||
import { SettingsService } from "../../services";
|
||||
|
||||
import * as languageData from "../../../other/iso-lang.json";
|
||||
import languageData from "./../../../other/iso-lang.json";
|
||||
|
||||
@Component({
|
||||
templateUrl: "./ombi.component.html",
|
||||
|
@ -33,7 +33,8 @@ export class OmbiComponent implements OnInit {
|
|||
disableHealthChecks: [x.disableHealthChecks]
|
||||
});
|
||||
});
|
||||
this.langauges = <ILanguageRefine[]><any>languageData;
|
||||
debugger;
|
||||
this.langauges = <ILanguageRefine[]>languageData
|
||||
}
|
||||
|
||||
public refreshApiKey() {
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
"target": "es5",
|
||||
"types": ["node"],
|
||||
"resolveJsonModule":true,
|
||||
"allowSyntheticDefaultImports":true,
|
||||
"typeRoots": [
|
||||
"node_modules/@types"
|
||||
],
|
||||
|
@ -19,7 +20,8 @@
|
|||
"es2017",
|
||||
"dom"
|
||||
]
|
||||
}
,
|
||||
}
|
||||
,
|
||||
"files": [
|
||||
"main.ts",
|
||||
"polyfills.ts"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue