Skip to content

Commit

Permalink
Merge branch 'ValoSpectra:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
b4iterdev authored Feb 2, 2025
2 parents 63b4f4c + 4bde3c3 commit 8d79321
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spectra-frontend",
"version": "0.2.12",
"version": "0.2.15",
"scripts": {
"ng": "ng",
"start": "ng serve --configuration development",
Expand Down
2 changes: 1 addition & 1 deletion src/app/endround/endround.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div *ngIf="match.roundPhase === 'end'">
<div *ngIf="this.endRoundEnabled && match.roundPhase === 'end'">
<div class="intro-box">
<div class="intro-box-content" [style.background-image]="setTournamentBackgroundImage()">
<div class="intro-info-box">
Expand Down
2 changes: 1 addition & 1 deletion src/app/endround/endround.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

.intro-info-image {
position: relative;
max-height: 100%;
max-height: 70%;
max-width: 100%;
}

Expand Down
4 changes: 4 additions & 0 deletions src/app/endround/endround.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ import { Component, Input, OnChanges, SimpleChanges, OnInit } from "@angular/cor
export class EndroundComponent implements OnChanges, OnInit {
@Input() match!: any;
tournamentUrl = "../../assets/misc/logo.webp";
endRoundEnabled = false;

tournamentBackgroundUrl = "../../assets/misc/backdrop.webp";

teamWon = 0;
ngOnInit(): void {
this.endRoundEnabled = this.match?.tools?.tournamentInfo?.enabled || false;
if (!this.endRoundEnabled) return;

this.tournamentUrl =
this.match?.tools?.tournamentInfo?.logoUrl && this.match.tools.tournamentInfo.logoUrl !== ""
? this.match.tools.tournamentInfo.logoUrl
Expand Down
6 changes: 6 additions & 0 deletions src/app/testing/testing.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ export class TestingComponent implements AfterViewInit {
left: "Group A",
right: "Group B",
},
tournamentInfo: {
name: "",
logoUrl: "",
backdropUrl: "",
enabled: true,
},
};

this.team2.swapColor();
Expand Down
5 changes: 5 additions & 0 deletions src/app/tracker/tracker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ export class TrackerComponent implements OnInit {
left: "",
right: "",
},
tournamentInfo: {
name: "",
logoUrl: "",
backdropUrl: "",
},
},
};

Expand Down

0 comments on commit 8d79321

Please sign in to comment.