diff --git a/src/app/components/agent-select/agent-select.component.html b/src/app/components/agent-select/agent-select.component.html index 3d6c6ff3..698ce4ef 100644 --- a/src/app/components/agent-select/agent-select.component.html +++ b/src/app/components/agent-select/agent-select.component.html @@ -1,39 +1,41 @@ -
- @for (team of dataModel.teams(); track $index; let teamIndex = $index) { -
+@if (dataModel.match().tools.agentSelectActive) { +
+ @for (team of dataModel.teams(); track $index; let teamIndex = $index) {
- {{ team.teamName }} +
+ {{ team.teamName }} +
+
+ @for (player of team.players; track $index) { + + } +
+
-
- @for (player of team.players; track $index) { - - } -
-
-
- } -
+ } +
+} diff --git a/src/app/components/top/match/spike-planted/spike-planted.component.ts b/src/app/components/top/match/spike-planted/spike-planted.component.ts index 03f5d14e..57702d50 100644 --- a/src/app/components/top/match/spike-planted/spike-planted.component.ts +++ b/src/app/components/top/match/spike-planted/spike-planted.component.ts @@ -27,7 +27,7 @@ export class SpikePlantedComponent { } }); - blinkTimerRef?: NodeJS.Timeout; + blinkTimerRef?: ReturnType; blinkState = true; isBlinking = false; blinkStartTime = 0; diff --git a/src/app/overlays/testing-agent-select/testing-agent-select.component.ts b/src/app/overlays/testing-agent-select/testing-agent-select.component.ts index 2fc2756a..c6cc9162 100644 --- a/src/app/overlays/testing-agent-select/testing-agent-select.component.ts +++ b/src/app/overlays/testing-agent-select/testing-agent-select.component.ts @@ -89,6 +89,7 @@ export class TestingAgentSelectComponent implements OnInit { type: "tournamentInfo", sponsors: [], }, + agentSelectActive: true, }, toastInfo: { active: false, diff --git a/src/app/overlays/testing/testing.component.ts b/src/app/overlays/testing/testing.component.ts index 7a4b202e..73f29687 100644 --- a/src/app/overlays/testing/testing.component.ts +++ b/src/app/overlays/testing/testing.component.ts @@ -99,6 +99,7 @@ export class TestingComponent implements OnInit { type: "tournamentInfo", sponsors: [], }, + agentSelectActive: false, }, toastInfo: { active: false, @@ -605,7 +606,7 @@ export class TestingComponent implements OnInit { }); } - spikeTimer?: NodeJS.Timeout; + spikeTimer?: ReturnType; plantSpike() { this.dataModel.match.update((v) => { @@ -800,7 +801,7 @@ export class TestingComponent implements OnInit { } //#endregion - timeoutTimerRef?: NodeJS.Timeout; + timeoutTimerRef?: ReturnType; startTimeoutTimer() { this.timeoutTimerRef = setInterval(() => { this.dataModel.match.update((v) => { diff --git a/src/app/services/Types.ts b/src/app/services/Types.ts index fec08596..8795de9e 100644 --- a/src/app/services/Types.ts +++ b/src/app/services/Types.ts @@ -108,6 +108,7 @@ export interface IToolsData { playercamsInfo: IPlayercamsInfo; nameOverrides: INameOverrides; roundWinBox: IRoundWinBox; + agentSelectActive: boolean; } export interface ISeriesInfo { diff --git a/src/app/services/dataModel.service.ts b/src/app/services/dataModel.service.ts index 846ba673..b1a8a100 100644 --- a/src/app/services/dataModel.service.ts +++ b/src/app/services/dataModel.service.ts @@ -195,6 +195,7 @@ export const initialMatchData: IMatchData = { type: "disabled", sponsors: [], }, + agentSelectActive: false, }, toastInfo: { active: false,