mirror of
https://github.com/romancm/gamebrary
synced 2024-11-23 19:53:14 +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"
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue