9ac2c9182a
- Redesigned audio player bar to be mobile-friendly - Added unloading for track switching (needs to be fixed) - Added IsLoading status so loading spinner isn't hanging around when it shouldn't be - Normalized styles with scoped files (will further reduce) - Layout Cleanup - EF fixes (migrations now function for deployment) - deploy script updates (new dedicated host)
16 lines
567 B
C#
16 lines
567 B
C#
using Microsoft.AspNetCore.Components;
|
|
using MudBlazor;
|
|
|
|
namespace DeepDrftWeb.Client.Controls.AudioPlayerBar;
|
|
|
|
public partial class PlayerControls : ComponentBase
|
|
{
|
|
[Parameter] public required bool IsPlaying { get; set; }
|
|
[Parameter] public required bool IsLoaded { get; set; }
|
|
[Parameter] public required EventCallback TogglePlayPause { get; set; }
|
|
[Parameter] public required EventCallback Stop { get; set; }
|
|
private string GetPlayIcon()
|
|
{
|
|
return IsPlaying ? Icons.Material.Filled.Pause : Icons.Material.Filled.PlayArrow;
|
|
}
|
|
} |