fix: client-side image type guard and deselect affordance on TrackEdit

This commit is contained in:
daniel-c-harvey
2026-06-07 16:41:02 -04:00
parent 5703ac2752
commit c4dc382bd7
2 changed files with 24 additions and 2 deletions
@@ -79,6 +79,18 @@
aria-label="Clear cover art" />
</MudStack>
}
else if (_selectedImageFile is not null)
{
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="2">
<MudText Typo="Typo.body2" Color="Color.Default">New image selected (not yet saved).</MudText>
<MudIconButton Icon="@Icons.Material.Filled.Clear"
Color="Color.Error"
Size="Size.Small"
Disabled="_busy"
OnClick="ClearImage"
aria-label="Cancel image selection" />
</MudStack>
}
else
{
<MudText Typo="Typo.body2" Color="Color.Default">No cover art set.</MudText>