WIP: Proceed with frontend implementation

This commit is contained in:
Simon Grimme
2022-07-21 21:17:04 +02:00
parent cc1e02a1ca
commit 38028b7e49
17 changed files with 124 additions and 19 deletions
@@ -0,0 +1,27 @@
import {AfterViewInit, Component} from '@angular/core';
import {GamesService} from "../../services/games.service";
import {DetectedGameDto} from "../../models/dtos/DetectedGameDto";
@Component({
selector: 'app-gameserver-list',
templateUrl: './library-overview.component.html',
styleUrls: ['./library-overview.component.css']
})
export class LibraryOverviewComponent implements AfterViewInit {
detectedGames: DetectedGameDto[] = [];
loading: boolean = true;
constructor(private gameServerService: GamesService) {
}
ngAfterViewInit(): void {
this.gameServerService.getAllGames().subscribe(
(detectedGames: DetectedGameDto[]) => {
this.detectedGames = detectedGames;
this.loading = false;
}
);
}
}