Track lists and the upload queue now render through a declarative DataGrid, the album editor reuses AlbumForm with a split layout and a track picker, and genre labels and types are shared helpers.
19 lines
495 B
Svelte
19 lines
495 B
Svelte
<script lang="ts">
|
|
import { goto } from '$app/navigation';
|
|
import { page } from '$app/state';
|
|
import LibraryAlbumEditor from '$lib/components/music/library/LibraryAlbumEditor.svelte';
|
|
|
|
let { data, form } = $props();
|
|
</script>
|
|
|
|
<div class="mt-4">
|
|
<LibraryAlbumEditor
|
|
album={null}
|
|
artist={page.data.user?.name ?? ''}
|
|
tracks={data.tracks.items}
|
|
memberIds={[]}
|
|
formMessage={form?.action === 'saveAlbum' ? form.message : undefined}
|
|
onClose={() => goto('/library/albums')}
|
|
/>
|
|
</div>
|