don't edit stack title when dragging

Signed-off-by: Simon Hötten <s+git@hoetten.org>
This commit is contained in:
Simon Hötten
2022-09-25 03:11:15 +02:00
committed by Julius Härtl
parent 0ae73b57d5
commit 467a3a454e
2 changed files with 12 additions and 1 deletions

View File

@@ -53,9 +53,11 @@
<Container lock-axix="y"
orientation="horizontal"
:drag-handle-selector="dragHandleSelector"
@drag-start="draggingStack = true"
@drag-end="draggingStack = false"
@drop="onDropStack">
<Draggable v-for="stack in stacksByBoard" :key="stack.id">
<Stack :stack="stack" />
<Stack :stack="stack" :dragging="draggingStack" />
</Draggable>
</Container>
</div>
@@ -100,6 +102,7 @@ export default {
},
data() {
return {
draggingStack: false,
loading: true,
newStackTitle: '',
}

View File

@@ -171,6 +171,10 @@ export default {
ClickOutside,
},
props: {
dragging: {
type: Boolean,
default: false,
},
stack: {
type: Object,
default: undefined,
@@ -270,6 +274,10 @@ export default {
this.modalArchivAllCardsShow = false
},
startEditing(stack) {
if (this.dragging) {
return
}
this.copiedStack = Object.assign({}, stack)
this.editing = true
},