Small fixes

This commit is contained in:
grimsi
2022-08-19 13:01:11 +02:00
parent a37a05551c
commit 963b667a4a
3 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -37,8 +37,8 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
"maximumWarning": "1mb",
"maximumError": "2mb"
},
{
"type": "anyComponentStyle",
@@ -23,6 +23,7 @@
<div *ngFor="let company of game.companies">
<img *ngIf="company.logoId !== undefined && company.logoId.length > 0" style="height: 52px;"
src="v1/images/{{company.logoId}}" alt="{{company.name}}">
<span *ngIf="company.logoId.length > 0">{{company.name}}</span>
</div>
</div>
</div>
@@ -2,7 +2,6 @@ import {Component, HostListener} from '@angular/core';
import {ActivatedRoute, Params, Router} from "@angular/router";
import {DetectedGameDto} from "../../models/dtos/DetectedGameDto";
import {GamesService} from "../../services/games.service";
import {MediaObserver} from "@angular/flex-layout";
@Component({
selector: 'app-game-detail-view',
@@ -17,8 +16,7 @@ export class GameDetailViewComponent {
constructor(private route: ActivatedRoute,
private router: Router,
private gamesService: GamesService,
private mediaObserver: MediaObserver) {
private gamesService: GamesService) {
this.gamesService.getGame(this.route.snapshot.params['slug']).subscribe({
next: game => this.game = game,
error: error => {