Don't highlight calendars if not dropable
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
parent
88da103051
commit
2e7c2730f8
1 changed files with 9 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue