3ef98aa3ff
Render the rich CmsAlbumBrowser filtered per medium in the CUTS/SESSIONS/MIXES tabs via an optional RowActions slot; retire the thin CmsMediumTable. Session hero and Mix waveform actions preserved; ALL tab and TrackList unchanged.
25 lines
1.0 KiB
Plaintext
25 lines
1.0 KiB
Plaintext
@inherits CmsMediumBrowserBase<CmsCutBrowser.CutRow>
|
|
@using DeepDrftModels.DTOs
|
|
@using DeepDrftModels.Enums
|
|
|
|
@* CUTS tab content (Phase 9 §8.A/§8.C): the rich CmsAlbumBrowser grid filtered to Cut releases, so the
|
|
tab carries expand-tracks, delete, the Type chip, and per-row edit identically to the ALL tab — no
|
|
forked grid. Cuts have no medium-specific row action, so no RowActions slot is supplied; the grid
|
|
renders its shared edit/delete only. Embedded as tab content only; no standalone @page route. *@
|
|
<CmsAlbumBrowser Releases="Releases"
|
|
IsLoading="Loading"
|
|
OnReleasesChanged="ReloadAsync" />
|
|
|
|
@code {
|
|
protected override ReleaseMedium Medium => ReleaseMedium.Cut;
|
|
protected override string MediumNoun => "cuts";
|
|
|
|
protected override CutRow ToRow(ReleaseDto release) => new() { Release = release };
|
|
protected override ReleaseDto ReleaseOf(CutRow row) => row.Release;
|
|
|
|
public sealed class CutRow
|
|
{
|
|
public required ReleaseDto Release { get; set; }
|
|
}
|
|
}
|