-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
The sortable directive is placed in the writer module though it seems it does not necessarily have to be writer specific. The directive itself has a very generic name, which can cause problems if its nature is only specifically aimed at facilitating the sortability of scenarios and steps in stories within the writer module.
It may be better to choose one of the following approaches:
- Rename the directive to storyWriterSortable to show its only relevant for this specific case. Also do this for the controller.
- Make it generic. This can probably be achieved by ensuring that the list-animate class statements are abstracted into a passable parameter for the directive as opposed to hardcoded class names that are very application specific. You would also have to double check the parent scope digest references to ensure that works in a generic setup, or if you should work with an explicitly passed sortable container on which you can call a digest.
For now option 1 might be the best, considering the lack of other cases where this directive is applied.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels