Skip to content

Commit b640c9f

Browse files
feat(monitor-list): enable drag and drop support for group elements
Allows group elements to be moved via drag and drop, similar to monitors.
1 parent 7c0bc58 commit b640c9f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/components/MonitorListItem.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,6 @@ export default {
206206
* @returns {void} This method does not return anything.
207207
*/
208208
onDragStart(event) {
209-
// Only allow dragging non-group monitors (so groups act as drop targets)
210-
if (this.monitor.type === "group") {
211-
event.preventDefault();
212-
return;
213-
}
214-
215209
try {
216210
event.dataTransfer.setData("text/monitor-id", String(this.monitor.id));
217211
event.dataTransfer.effectAllowed = "move";

0 commit comments

Comments
 (0)