mirror of
https://github.com/romancm/gamebrary
synced 2024-11-24 04:03:06 +00:00
disable drag when auto sort is on
This commit is contained in:
parent
174228a02a
commit
9c8c2de0e9
1 changed files with 5 additions and 1 deletions
|
@ -57,7 +57,7 @@
|
||||||
:move="validateMove"
|
:move="validateMove"
|
||||||
handle=".card"
|
handle=".card"
|
||||||
ghost-class="card-placeholder"
|
ghost-class="card-placeholder"
|
||||||
:disabled="!user || !isBoardOwner"
|
:disabled="draggingDisabled"
|
||||||
filter=".drag-filter"
|
filter=".drag-filter"
|
||||||
animation="300"
|
animation="300"
|
||||||
:group="{ name: 'games' }"
|
:group="{ name: 'games' }"
|
||||||
|
@ -138,6 +138,10 @@ export default {
|
||||||
...mapState(['games', 'dragging', 'progresses', 'board', 'user']),
|
...mapState(['games', 'dragging', 'progresses', 'board', 'user']),
|
||||||
...mapGetters(['isBoardOwner']),
|
...mapGetters(['isBoardOwner']),
|
||||||
|
|
||||||
|
draggingDisabled() {
|
||||||
|
return !this.user || !this.isBoardOwner || this.autoSortEnabled;
|
||||||
|
},
|
||||||
|
|
||||||
autoSortEnabled() {
|
autoSortEnabled() {
|
||||||
const { settings } = this.list;
|
const { settings } = this.list;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue