Various styling and small QoL improvements

This commit is contained in:
grimsi
2022-08-05 10:26:01 +02:00
parent 7f2e77c8bc
commit 8ee217bbe8
12 changed files with 160 additions and 85 deletions
@@ -1,4 +1,4 @@
import {AfterViewInit, Component} from '@angular/core';
import {AfterContentInit, AfterViewInit, Component} from '@angular/core';
import {GamesService} from "../../services/games.service";
import {DetectedGameDto} from "../../models/dtos/DetectedGameDto";
@@ -7,7 +7,7 @@ import {DetectedGameDto} from "../../models/dtos/DetectedGameDto";
templateUrl: './library-overview.component.html',
styleUrls: ['./library-overview.component.scss']
})
export class LibraryOverviewComponent implements AfterViewInit {
export class LibraryOverviewComponent implements AfterContentInit {
detectedGames: DetectedGameDto[] = [];
loading: boolean = true;
@@ -15,7 +15,7 @@ export class LibraryOverviewComponent implements AfterViewInit {
constructor(private gameServerService: GamesService) {
}
ngAfterViewInit(): void {
ngAfterContentInit(): void {
this.gameServerService.getAllGames().subscribe(
(detectedGames: DetectedGameDto[]) => {
this.detectedGames = detectedGames;