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
data: ->
scrollOffset: 20
loadMore: false
watch:
done: (done) ->
this.sortable.option('disabled', done.issue?)
methods:
listHeight: -> this.$els.list.getBoundingClientRect().height
scrollHeight: -> this.$els.list.scrollHeight
......@@ -39,7 +42,7 @@ BoardList = Vue.extend
return returnIssue
ready: ->
Sortable.create this.$els.list,
this.sortable = Sortable.create this.$els.list,
group: 'issues'
disabled: this.disabled
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