disable drag when auto sort is on

This commit is contained in:
Gamebrary 2021-04-22 15:35:36 -07:00
parent 174228a02a
commit 9c8c2de0e9

View file

@ -57,7 +57,7 @@
:move="validateMove"
handle=".card"
ghost-class="card-placeholder"
:disabled="!user || !isBoardOwner"
:disabled="draggingDisabled"
filter=".drag-filter"
animation="300"
:group="{ name: 'games' }"
@ -138,6 +138,10 @@ export default {
...mapState(['games', 'dragging', 'progresses', 'board', 'user']),
...mapGetters(['isBoardOwner']),
draggingDisabled() {
return !this.user || !this.isBoardOwner || this.autoSortEnabled;
},
autoSortEnabled() {
const { settings } = this.list;