1
0
Fork 0
mirror of https://codeberg.org/beerbrawl/beerbrawl.git synced 2024-09-23 05:40:51 +02:00

fix: overview bugs

This commit is contained in:
MohammedKevin 2024-05-31 12:00:01 +02:00
parent 649afb8983
commit ea73818865
3 changed files with 5 additions and 3 deletions

View file

@ -20,6 +20,7 @@ import { MatChipTrailingIcon, MatChipsModule } from '@angular/material/chips';
import { MatCard } from '@angular/material/card';
import { ConfirmationService } from '../../services/confirmation.service';
import { ActivatedRoute } from '@angular/router';
import { Location } from '@angular/common';
@Component({
selector: 'app-beer-pong-table-overview',
@ -56,6 +57,7 @@ export class BeerPongTableOverviewComponent implements OnInit {
private confirmationService: ConfirmationService,
private router: Router,
private route: ActivatedRoute,
private location: Location,
) {}
ngOnInit() {
@ -104,7 +106,7 @@ export class BeerPongTableOverviewComponent implements OnInit {
}
backToOverview() {
this.router.navigate([`/tournaments`]);
this.location.back();
}
createBeerPongTable() {

View file

@ -1,7 +1,7 @@
<mat-card>
<div class="top-bar">
<div class="row">
<div class="title">{{ this.tournament?.name ?? 'Tournament' }} Tables Overview</div>
<div class="title">{{ this.tournament?.name ?? 'Tournament' }} Teams Overview</div>
<button mat-raised-button color="primary" [routerLink]="'..'">Back to Overview</button>
</div>
</div>

View file

@ -71,7 +71,7 @@
</mat-card>
</div>
<div class="hover-transform">
<mat-card class="card" [routerLink]="this.tournamentId()">
<mat-card class="card">
<mat-card-title>K.O.-Phase</mat-card-title>
<mat-card-content>
<div>Status: {{ koMatchesStatus }}</div>