diff --git a/plugins/workbench-resources/src/components/EditStatuses.svelte b/plugins/workbench-resources/src/components/EditStatuses.svelte index 81482202ae..f4c7d09868 100644 --- a/plugins/workbench-resources/src/components/EditStatuses.svelte +++ b/plugins/workbench-resources/src/components/EditStatuses.svelte @@ -15,27 +15,52 @@ --> - {#each states as state} - {state.title} + { + console.log(`Dragging ${selected} over ${state._id} (${state.title})`) + }} + on:drop|preventDefault={() => { + console.log(`Drop ${selected} into ${state._id} (${state.title})`) + }} + on:dragstart={() => { + selected = state._id + console.log('Start dragging: ' + selected) + }} + on:dragend={() => { + console.log('End dragging: ' + selected) + selected = undefined + }} + > + {state.title} + {/each} + +