mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Custom CSS is now working
This commit is contained in:
parent
8c25daff56
commit
aba00ae698
2 changed files with 7 additions and 1 deletions
|
@ -83,6 +83,12 @@ export class AppComponent implements OnInit {
|
|||
this.applicationName = this.customizationSettings.applicationName;
|
||||
this.document.getElementsByTagName('title')[0].innerText = this.applicationName;
|
||||
}
|
||||
if (this.customizationSettings && this.customizationSettings.customCss) {
|
||||
var dom = this.document.getElementsByTagName('head')[0];
|
||||
var css = document.createElement("style");
|
||||
css.innerHTML = this.customizationSettings.customCss;
|
||||
dom.appendChild(css);
|
||||
}
|
||||
|
||||
if (this.customizationSettings.useCustomPage) {
|
||||
this.customPageService.getCustomPage().subscribe(c => {
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
<mat-checkbox formControlName="rememberMe">{{'Login.RememberMe' | translate}}</mat-checkbox>
|
||||
|
||||
<button mat-raised-button color="accent" type="submit">{{'Login.SignInButton' | translate}}</button>
|
||||
<button id="sign-in" mat-raised-button color="accent" type="submit">{{'Login.SignInButton' | translate}}</button>
|
||||
|
||||
<a [routerLink]="['/reset']" class="forgot-password col-md-12">
|
||||
<b [translate]="'Login.ForgottenPassword'"></b>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue