mirror of https://github.com/nextcloud/bookmarks
Disable drag-and-drop when renaming item
fixes #1574 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
9c5a465885
commit
d4a82041f2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue