Don't highlight calendars if not dropable

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
Raimund Schlüßler 2020-03-07 18:30:11 +01:00
parent 88da103051
commit 2e7c2730f8
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178

View file

@ -307,6 +307,15 @@ export default {
if (this.calendar.readOnly) {
return
}
if (this.calendar.isSharedWithMe) {
const taskUri = e.dataTransfer.getData('text/plain')
if (taskUri) {
const task = this.getTask(taskUri)
if (task.class !== 'PUBLIC') {
return
}
}
}
// Get the correct element, in case we hover a child.
if (e.target.closest) {
const target = e.target.closest('li.list')