WIP: Implemented game download functionality

This commit is contained in:
grimsi
2022-07-24 20:01:28 +02:00
parent eab1cf629c
commit e1a285a77d
10 changed files with 180 additions and 34 deletions
@@ -3,6 +3,7 @@ import {ActivatedRoute, Router} from "@angular/router";
import {DetectedGameDto} from "../../models/dtos/DetectedGameDto";
import {GamesService} from "../../services/games.service";
import {HttpErrorResponse} from "@angular/common/http";
import {takeWhile} from "rxjs";
@Component({
selector: 'app-game-detail-view',
@@ -33,4 +34,8 @@ export class GameDetailViewComponent implements OnInit {
ngOnInit(): void {
}
downloadGame(): void {
this.gamesService.downloadGame(this.game.slug);
}
}