Skip to content

Commit

Permalink
Hide badges for undocumented games
Browse files Browse the repository at this point in the history
Reference #59 and #60
  • Loading branch information
codemonkey85 committed Nov 4, 2024
1 parent 6e77fea commit 7ed78a3
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Pkmds.Web/Components/MainTabPages/BadgesComponent.razor
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
@inherits BasePkmdsComponent

@{
var badges = GetSaveFileBadgesValue();
@if (AppState.SaveFile is SAV7b { Context: EntityContext.Gen7b } or SAV9SV { Context: EntityContext.Gen9 })
{
}
@for (var i = 0; i < badges.Count; i++)
else
{
var badgeIndex = i;
<MudCheckBox Label="@($"Badge {badgeIndex + 1}")"
T="@bool"
Value="@badges[i]"
ValueChanged="@(_ => OnBadgeToggle(badgeIndex))" />
var badges = GetSaveFileBadgesValue();
@for (var i = 0; i < badges.Count; i++)
{
var badgeIndex = i;
<MudCheckBox Label="@($"Badge {badgeIndex + 1}")"
T="@bool"
Value="@badges[i]"
ValueChanged="@(_ => OnBadgeToggle(badgeIndex))" />
}
}

0 comments on commit 7ed78a3

Please sign in to comment.