@inherits FnzComponentBase @implements IDisposable @code { private FeDisc currentDisc; private FnzBootstrapModal modalDisc; private bool showDetails; private bool IsShown { get; set; } = false; public void Show(FeDisc disc) { currentDisc = disc; IsShown = true; StateHasChanged(); modalDisc.Show(); } protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); App.Instance.BottomBarHeightChanged += UpdateMarginBottom; } private void UpdateMarginBottom() => StateHasChanged(); public void Dispose() => App.Instance.BottomBarHeightChanged -= UpdateMarginBottom; private string StyleString => $"margin-bottom: {App.Instance.BottomBarHeight}px"; } <span class="badge bg-light">@currentDisc?.Lib.Name</span> @currentDisc?.Name @if (IsShown) {
@foreach (var subSet in (currentDisc?.TrackSets).KeepNoEmpty().WithIndex()) {
} @if (currentDisc?.Bks != null) {
}
}