feat: reordering documents in collection (#1722)
* tweaking effect details * wrap work on this feature * adds correct color to drop cursor * simplify logic for early return * much better comment so Tom doesn't fire me * feat: Allow changing sort order of collections * refactor: Move validation to model feat: Make custom order the default (in prep for dnd) * feat: Add sort choice to edit collection modal fix: Improved styling of generic InputSelect * fix: Vertical space left after removing previous collection description * chore: Tweak language, menu contents, add auto-disclosure on sub menus * only show drop-to-reorder cursor when sort is set to manual Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
@@ -453,7 +453,8 @@ export default class DocumentsStore extends BaseStore<Document> {
|
||||
move = async (
|
||||
documentId: string,
|
||||
collectionId: string,
|
||||
parentDocumentId: ?string
|
||||
parentDocumentId: ?string,
|
||||
index: ?number
|
||||
) => {
|
||||
this.movingDocumentId = documentId;
|
||||
|
||||
@@ -462,6 +463,7 @@ export default class DocumentsStore extends BaseStore<Document> {
|
||||
id: documentId,
|
||||
collectionId,
|
||||
parentDocumentId,
|
||||
index: index,
|
||||
});
|
||||
invariant(res && res.data, "Data not available");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user