OpenSlides/openslides/agenda
GabrielMeyer 76d760bd41 Replaces the old angular2tree with a custom drag&drop tree
Calculates the direction of the moving.

Finishes the moving of nodes in same level

Adds some style

Sets the padding dynamically

Adds placeholder depends on the horizontal movement

Set the placeholder at the correct place, so the user can see, where he will drop the moved node

Finishes moving of nodes

- Old parents change their option to expand.
- New parents change their option to expand.
- If the user moves a node between nodes with a higher level, the node will be moved to the next index with same or lower level.

Fixes the visibility of moved node

- If the new parent is not visible, the moved node will not be seen.

If the user moves an expanded node, the new parent should expanded, too, if it's not already.

Sending successfully data to the server

- Sorting the items

Handles moving nodes between parent and children

- If the user moves a node between a parent and its children, the children will be relinked to the moved node as their new parent.

Replaces the old `sorting-tree` to a new one

- The new `sorted-tree` replaces the old `sorting-tree`.
- The old package `angular-tree-component` was removed.
- The user will only see the buttons to save or cancel his changes, if he made changes.
- The buttons, that do not work currently, were removed.

Adds a guard to check if the user made changes.

- If the user made changes but he has not saved them, then there is a dialog that will prompt to ask for confirmation.

Before cancelling the changes the user has to confirm this.
2019-03-19 13:19:35 +01:00
..
migrations Autoupdate on element deletion 2019-01-19 14:46:59 +01:00
__init__.py Run black 2019-01-08 21:51:52 +01:00
access_permissions.py List of speakers slide 2019-02-21 12:34:41 +01:00
apps.py Projector V 2019-01-28 23:18:27 +01:00
config_variables.py Run black 2019-01-08 21:51:52 +01:00
models.py Resort python import for isort 4.3.11 (fixes #4467) 2019-03-06 14:54:03 +01:00
projector.py Fallback to id when sorting the agenda 2019-03-08 11:59:07 +01:00
serializers.py List of speakers slide 2019-02-21 12:34:41 +01:00
signals.py Resort python import for isort 4.3.11 (fixes #4467) 2019-03-06 14:54:03 +01:00
views.py Replaces the old angular2tree with a custom drag&drop tree 2019-03-19 13:19:35 +01:00