Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Make slots and rooms sortable via drag and drop #84

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

daniel-fink-de
Copy link

In this PR, I have implemented a potential solution for making slots and rooms sortable based on #13.

The changes can be summarized as follows:

  • Add an int OrderNumber property for the Slot and Room entities, respectively.
  • Create additional event handlers with interact.js to accommodate the drag-and-drop functionality.
  • Update the target and source Slot and Room, respectively, via switching the corresponding OrderNumber property.

Please note:

  • When a new Slot or Room is created in the backend, the value of OrderNumber will be set to the maximum number of all existing slots and rooms plus one, respectively.

Potential improvements:

  • The OrderNumber may be shown and edited in the room and slot modal, respectively.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant