don't edit stack title when dragging
Signed-off-by: Simon Hötten <s+git@hoetten.org>
This commit is contained in:
committed by
Julius Härtl
parent
0ae73b57d5
commit
467a3a454e
@@ -53,9 +53,11 @@
|
|||||||
<Container lock-axix="y"
|
<Container lock-axix="y"
|
||||||
orientation="horizontal"
|
orientation="horizontal"
|
||||||
:drag-handle-selector="dragHandleSelector"
|
:drag-handle-selector="dragHandleSelector"
|
||||||
|
@drag-start="draggingStack = true"
|
||||||
|
@drag-end="draggingStack = false"
|
||||||
@drop="onDropStack">
|
@drop="onDropStack">
|
||||||
<Draggable v-for="stack in stacksByBoard" :key="stack.id">
|
<Draggable v-for="stack in stacksByBoard" :key="stack.id">
|
||||||
<Stack :stack="stack" />
|
<Stack :stack="stack" :dragging="draggingStack" />
|
||||||
</Draggable>
|
</Draggable>
|
||||||
</Container>
|
</Container>
|
||||||
</div>
|
</div>
|
||||||
@@ -100,6 +102,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
draggingStack: false,
|
||||||
loading: true,
|
loading: true,
|
||||||
newStackTitle: '',
|
newStackTitle: '',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,6 +171,10 @@ export default {
|
|||||||
ClickOutside,
|
ClickOutside,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
dragging: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
stack: {
|
stack: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: undefined,
|
default: undefined,
|
||||||
@@ -270,6 +274,10 @@ export default {
|
|||||||
this.modalArchivAllCardsShow = false
|
this.modalArchivAllCardsShow = false
|
||||||
},
|
},
|
||||||
startEditing(stack) {
|
startEditing(stack) {
|
||||||
|
if (this.dragging) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
this.copiedStack = Object.assign({}, stack)
|
this.copiedStack = Object.assign({}, stack)
|
||||||
this.editing = true
|
this.editing = true
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user