links to song, not remove when clicked

main
Matthew Huntington 3 months ago
parent b693e68b9c
commit 3e619cb27f

@ -39,10 +39,6 @@
description description
} from '../libs/state.js' } from '../libs/state.js'
const removeSong = (song) => {
copiedSongs.value = copiedSongs.value.filter(curr => curr.id !== song.id)
}
export default { export default {
data() { data() {
return { return {
@ -239,7 +235,11 @@
<label>Songs</label> <label>Songs</label>
<ul v-if="copiedSongs.length > 0"> <ul v-if="copiedSongs.length > 0">
<li @click="removeSong(song)" v-for="song in copiedSongs">{{song.title}}</li> <li v-for="song in copiedSongs">
<a v-bind:href="'#/songs/' + song.id">
{{song.title}}
</a>
</li>
</ul> </ul>
<label>Seconds</label> <label>Seconds</label>

Loading…
Cancel
Save