Skip to content

Commit 6ea6cba

Browse files
committed
fix: save option reorder on drop via debounced watcher
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
1 parent f67613c commit 6ea6cba

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/Questions/QuestionDropdown.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
handle=".option__drag-handle"
5656
invertSwap
5757
target=".sort-target"
58-
@update="saveOptionsOrder('choice')"
58+
@update="dirtyOptionsType = 'choice'"
5959
@start="onDragStart"
6060
@end="onDragEnd">
6161
<TransitionGroup

src/components/Questions/QuestionGrid.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
handle=".option__drag-handle"
102102
invertSwap
103103
target=".sort-target"
104-
@update="saveOptionsOrder('column')"
104+
@update="dirtyOptionsType = 'column'"
105105
@start="onDragStart"
106106
@end="onDragEnd">
107107
<!-- Column input edit -->
@@ -139,7 +139,7 @@
139139
handle=".option__drag-handle"
140140
invertSwap
141141
target=".sort-target"
142-
@update="saveOptionsOrder('row')"
142+
@update="dirtyOptionsType = 'row'"
143143
@start="onDragStart"
144144
@end="onDragEnd">
145145
<TransitionGroup

src/components/Questions/QuestionMultiple.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
handle=".option__drag-handle"
127127
invertSwap
128128
target=".sort-target"
129-
@update="saveOptionsOrder('choice')"
129+
@update="dirtyOptionsType = 'choice'"
130130
@start="onDragStart"
131131
@end="onDragEnd">
132132
<TransitionGroup

src/components/Questions/QuestionRanking.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
handle=".option__drag-handle"
142142
invertSwap
143143
target=".sort-target"
144-
@update="saveOptionsOrder('choice')"
144+
@update="dirtyOptionsType = 'choice'"
145145
@start="onDragStart"
146146
@end="onDragEnd">
147147
<TransitionGroup

0 commit comments

Comments
 (0)