File tree Expand file tree Collapse file tree
src/CodeBreaker.Blazor.Client/Pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44@using Codebreaker .GameAPIs .Client .Models
55
66<FluentCard >
7- <h2 >@Loc ["GamePage_Title"]</h2 >
8-
97 @if (_gameStatus == GameMode .NotRunning )
108 {
9+ <h2 >@Loc ["GamePage_Title "]</h2 >
1110 <FluentGrid Class =" align-items-end" >
1211 <FluentGridItem xs =" 12" md =" 6" >
1312 @if (_isNamePrefilled )
5958 {
6059 <div class =" header flex" >
6160 <div >
62- <h2 class =" flex-1" >@_game ?.GameType </h2 >
61+ <h2 class =" flex-1" >@Loc [" GamePage_Title "] @FormatGameTypeString( _game? .GameType ) </h2 >
6362 <StopWatch Running =" @(_gameStatus == GameMode.MoveSet || _gameStatus == GameMode.Started)" />
6463 </div >
6564 <div >
Original file line number Diff line number Diff line change @@ -217,6 +217,9 @@ private async ValueTask OnLocationChanging(LocationChangingContext context)
217217 StateHasChanged ( ) ;
218218 }
219219
220+ private string ? FormatGameTypeString ( string ? gameTypeString ) =>
221+ gameTypeString ? . Replace ( "Game" , null ) ;
222+
220223 public void Dispose ( )
221224 {
222225 _timer ? . Dispose ( ) ;
You can’t perform that action at this time.
0 commit comments