diff --git a/src/components/songs.vue b/src/components/songs.vue index 2636b5e..32c0571 100644 --- a/src/components/songs.vue +++ b/src/components/songs.vue @@ -11,11 +11,14 @@ const copy = (title) => { navigator.clipboard.writeText(title); } - const paste = (song) => { + const link = (song) => { if(copiedSongs.value.findIndex(copiedSong=>copiedSong.id === song.id) === -1){ copiedSongs.value.push(song) } } + const unlink = (song) => { + copiedSongs.value = copiedSongs.value.filter(currSong => currSong.id !== song.id) + }