check for canEdit attribute

This commit is contained in:
Jason Chen 2022-06-17 14:01:13 -07:00
parent 7670d0cac1
commit b84e3dd572

View file

@ -779,7 +779,7 @@
}
},
async pasteSongs(event) {
if( event.ctrlKey && event.keyCode === 86 ) {
if( event.ctrlKey && event.keyCode === 86 && this.data.attributes.canEdit ) {
let clipboard = await navigator.clipboard.readText()
let songs = []