Vue.Draggable icon indicating copy to clipboard operation
Vue.Draggable copied to clipboard

Revert to previous list if ajax call fails

Open AbdurRehman26 opened this issue 7 years ago • 1 comments

It was working fine with single list but i need to work with multiple lists ( like Jira board ). I want to move a card ( element ) from one list to another but it should work with a post request. If i get a negative response from server then i should be able to move it back to the previous state.

Things i have done so far includes using

:move :

it works if i have to reject a move directly without using ajax call.

@change :

I am not able to revert using this method. This is actually the one i want to work with.

AbdurRehman26 avatar Jan 24 '19 06:01 AbdurRehman26

@AbdurRehman26 , If you have currently a scenario where vue.draggable present am unexpected behavior, create a jsfiddle and create another issue with the given issue. Otherwise, please check other issues for some past discussion about how manage ajax and revert with vue.draggable or create a question on stackoverflow.

David-Desmaisons avatar Jan 30 '19 14:01 David-Desmaisons