
* Fixed Summary not allowing an empty field, as it should allow that. * Cleaned up some localization wording and put a todo for a bug with library filtering not working. * Added Want to Read to OPDS stream * Implemented the ability to disable adding filter rows for bookmarks page which only supports one filter type. * Fixed the library filtering code * Fixed a bunch of titles across the app. Fixed about system page not showing data quick enough. * Hide API key by default and show a button to unhide. Fixed a styling issue with input group buttons. * Fixed a hack to support zh_Hans language code to work for things like pt-br as well. * Fixed transloco not supporting same language scheme as Weblate, but somehow needs all languages. * Fixed the rating on series detail not being inline with other sections
30 lines
934 B
TypeScript
30 lines
934 B
TypeScript
import {ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, OnInit} from '@angular/core';
|
|
import {ServerService} from 'src/app/_services/server.service';
|
|
import {ServerInfoSlim} from '../_models/server-info';
|
|
import {NgIf} from '@angular/common';
|
|
import {TranslocoDirective} from "@ngneat/transloco";
|
|
|
|
@Component({
|
|
selector: 'app-manage-system',
|
|
templateUrl: './manage-system.component.html',
|
|
styleUrls: ['./manage-system.component.scss'],
|
|
standalone: true,
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
imports: [NgIf, TranslocoDirective]
|
|
})
|
|
export class ManageSystemComponent implements OnInit {
|
|
|
|
serverInfo!: ServerInfoSlim;
|
|
private readonly cdRef = inject(ChangeDetectorRef);
|
|
|
|
|
|
constructor(public serverService: ServerService) { }
|
|
|
|
ngOnInit(): void {
|
|
|
|
this.serverService.getServerInfo().subscribe(info => {
|
|
this.serverInfo = info;
|
|
this.cdRef.markForCheck();
|
|
});
|
|
}
|
|
}
|