Skip to content

Commit

Permalink
Open replay viewer in new window
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 committed Mar 7, 2024
1 parent faf2ae1 commit a3234e7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Client/Components/Replay.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h5 class="card-title">@_nameFormatted</h5>
<p class="card-text">Map: @ReplayData.Map</p>
<p class="card-text">Gamemode: @ReplayData.Gamemode</p>
<button class="btn btn-primary" onclick="window.location.href = '/replay/@ReplayData.Id'">View</button>
<a class="btn btn-primary" href="/replay/@ReplayData.Id" target="_blank">View</a>
</div>
</div>

Expand All @@ -34,7 +34,14 @@
}
else
{
_nameFormatted = ReplayData.ServerId;
if (ReplayData.ServerName != null)
{
_nameFormatted = ReplayData.ServerName;
}
else
{
_nameFormatted = ReplayData.ServerId;
}
}
}
}

0 comments on commit a3234e7

Please sign in to comment.