Duplicate song queue adds can be blocked

This commit is contained in:
Kristy Fournier 2026-01-22 00:31:53 -05:00
parent 1e1eac4aa4
commit bcd6807a34
2 changed files with 22 additions and 8 deletions

View file

@ -332,7 +332,11 @@ async function submitSong(songid) {
let returncode = await getFromServer({song: songid}, "songadd");
if(returncode == ERR_NO_ADMIN) {
// right now the error is alerted in getFromServer, maybe will change that
} else {
}
else if(returncode["error"]=="song-in-queue") {
alertText("That song's about to play! Hang on!")
}
else {
alertText("Added to Queue");
}
}