Skip to content

Commit

Permalink
Show year in title
Browse files Browse the repository at this point in the history
  • Loading branch information
edgiardina committed Jan 2, 2025
1 parent 47de57f commit 90f1f8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ViewModels/PlayerChampionshipSeriesViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public async Task LoadItems()
var player = await PinballRankingApiV2.GetPlayer(PlayerId);

ChampionshipSeries = player.ChampionshipSeries.Where(n => n.Year == Year).ToList();

Title = $"{Strings.PlayerChampionshipSeriesPage_ChampionshipSeries} - {Year}";
}
catch (Exception ex)
{
Expand Down
2 changes: 1 addition & 1 deletion Views/PlayerChampionshipSeriesPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:local="clr-namespace:Ifpa"
xmlns:mi="http://www.aathifmahir.com/dotnet/2022/maui/icons"
Title="{x:Static local:Strings.PlayerChampionshipSeriesPage_ChampionshipSeries}"
Title="{Binding Title}"
xmlns:vm="clr-namespace:Ifpa.ViewModels"
x:DataType="vm:PlayerChampionshipSeriesViewModel"
xmlns:ifpawppr="clr-namespace:PinballApi.Models.v2.WPPR;assembly=PinballApi">
Expand Down

0 comments on commit 90f1f8e

Please sign in to comment.