Disable drag-and-drop when renaming item

fixes #1574

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2021-09-20 18:14:29 +02:00
parent 9c5a465885
commit d4a82041f2
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
'item--gridview': viewMode === 'grid'
}"
:style="{ background }"
:draggable="draggable"
:draggable="draggable && !renaming"
@dragstart="onDragStart">
<template v-if="!renaming">
<a
@ -174,7 +174,7 @@ export default {
this.$emit('click', e)
},
async onDragStart(e) {
if (!this.draggable) {
if (!this.draggable || this.renaming) {
return
}
if (!this.selected) {