mirror of
https://github.com/koel/koel
synced 2024-11-10 14:44:13 +00:00
Sync track number after updating song
This commit is contained in:
parent
f43e72355c
commit
b943965043
1 changed files with 2 additions and 1 deletions
|
@ -305,9 +305,10 @@ export default {
|
|||
let originalAlbumId = originalSong.album.id;
|
||||
let originalArtistId = originalSong.album.artist.id;
|
||||
|
||||
// First, we update the title and the lyrics
|
||||
// First, we update the title, lyrics, and track #
|
||||
originalSong.title = updatedSong.title;
|
||||
originalSong.lyrics = updatedSong.lyrics;
|
||||
originalSong.track = updatedSong.track;
|
||||
|
||||
if (updatedSong.album.id === originalAlbumId) { // case 1
|
||||
// Nothing to do
|
||||
|
|
Loading…
Reference in a new issue