Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(sort): refresh when sorting notes via dialog
Elian Doran7e01dfd22096
diff --git a/apps/client/src/widgets/dialogs/sort_child_notes.ts b/apps/client/src/widgets/dialogs/sort_child_notes.tsindex 7560476c56..4724cf55c2 100644--- a/apps/client/src/widgets/dialogs/sort_child_notes.ts+++ b/apps/client/src/widgets/dialogs/sort_child_notes.ts@@ -88,7 +88,9 @@ export default class SortChildNotesDialog extends BasicWidget {this.$widget = $(TPL);this.$form = this.$widget.find(".sort-child-notes-form");- this.$form.on("submit", async () => {+ this.$form.on("submit", async (e) => {+ e.preventDefault();+const sortBy = this.$form.find("input[name='sort-by']:checked").val();const sortDirection = this.$form.find("input[name='sort-direction']:checked").val();const foldersFirst = this.$form.find("input[name='sort-folders-first']").is(":checked");