From c4f3435d9fc5285c755b04406151d76903a215d4 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Tue, 25 Nov 2025 11:27:02 +0800 Subject: [PATCH] [F] Fix disabled conditions --- README.md | 1 - src/routes/song/[id]/+page.svelte | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6963f7a..a2c5f28 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,6 @@ Practice Japanese Karaoke lyrics reading and typing at the same time with amaoke * [ ] Intro popup * [ ] Re-encode songs using opus * [ ] Meta tags -* [ ] Bug: 音乐模式 should require lyrics to be ready ## 自搭服务器文档 / Self-hosting Guide diff --git a/src/routes/song/[id]/+page.svelte b/src/routes/song/[id]/+page.svelte index 5c7df3f..fd0e135 100644 --- a/src/routes/song/[id]/+page.svelte +++ b/src/routes/song/[id]/+page.svelte @@ -28,9 +28,9 @@ }) let modes = $derived([ - { icon: "i-material-symbols:keyboard-rounded", label: t.typing, url: `/song/${data.song.id}/play`, disabled: !taskStatus.lyrics || !taskStatus.ai }, - { icon: "i-material-symbols:music-note-rounded", label: t.music, url: `/song/${data.song.id}/play?music=true`, disabled: !taskStatus.music }, - { icon: "i-material-symbols:mic-rounded", label: t.karaoke, url: `/song/${data.song.id}/karaoke`, disabled: !taskStatus.separation }, + { icon: "i-material-symbols:keyboard-rounded", label: t.typing, url: `/song/${data.song.id}/play`, disabled: !taskStatus.ai }, + { icon: "i-material-symbols:music-note-rounded", label: t.music, url: `/song/${data.song.id}/play?music=true`, disabled: !taskStatus.ai || !taskStatus.music }, + { icon: "i-material-symbols:mic-rounded", label: t.karaoke, url: `/song/${data.song.id}/karaoke`, disabled: !taskStatus.ai || !taskStatus.separation }, ]) let progressItems = $state([])