Files
deepdrft/DeepDrftPublic.Client/Controls/AudioPlayerBar/PlayerControls.razor
T
daniel-c-harvey e3fe401abf Consolidate play/pause icon logic into PlaybackIcons mapper and PlayStateIcon component
Add Disabled parameter to PlayStateIcon; forward to MudIconButton;
pass Disabled="!IsLoaded" from PlayerControls to match Stop button parity.
2026-06-06 10:46:32 -04:00

15 lines
549 B
Plaintext

@namespace DeepDrftPublic.Client.Controls.AudioPlayerBar
@using DeepDrftPublic.Client.Controls
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="2">
<PlayStateIcon Size="Size.Large"
Color="Color.Primary"
Disabled="!IsLoaded"
OnToggle="@TogglePlayPause"/>
<MudIconButton Icon="@Icons.Material.Filled.Stop"
Color="Color.Primary"
Size="Size.Large"
OnClick="@Stop"
Disabled="!IsLoaded"/>
</MudStack>