Commit b1ec388c authored by Phil Hughes's avatar Phil Hughes

Disables sortable when in marking done mode

parent e029c224
...@@ -9,6 +9,9 @@ BoardList = Vue.extend ...@@ -9,6 +9,9 @@ BoardList = Vue.extend
data: -> data: ->
scrollOffset: 20 scrollOffset: 20
loadMore: false loadMore: false
watch:
done: (done) ->
this.sortable.option('disabled', done.issue?)
methods: methods:
listHeight: -> this.$els.list.getBoundingClientRect().height listHeight: -> this.$els.list.getBoundingClientRect().height
scrollHeight: -> this.$els.list.scrollHeight scrollHeight: -> this.$els.list.scrollHeight
...@@ -39,7 +42,7 @@ BoardList = Vue.extend ...@@ -39,7 +42,7 @@ BoardList = Vue.extend
return returnIssue return returnIssue
ready: -> ready: ->
Sortable.create this.$els.list, this.sortable = Sortable.create this.$els.list,
group: 'issues' group: 'issues'
disabled: this.disabled disabled: this.disabled
scrollSensitivity: 150 scrollSensitivity: 150
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment