mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
add support for the persistent #sortDirection and #sortFoldersFirst (one time UI action exists), closes #3046
This commit is contained in:
@@ -135,10 +135,6 @@ function getSomeNotePath(note, hoistedNotePath = 'root') {
|
||||
return notePath === null ? null : notePath.join('/');
|
||||
}
|
||||
|
||||
async function sortAlphabetically(noteId) {
|
||||
await server.put(`notes/${noteId}/sort`);
|
||||
}
|
||||
|
||||
ws.subscribeToMessages(message => {
|
||||
if (message.type === 'openNote') {
|
||||
appContext.tabManager.activateOrOpenNote(message.noteId);
|
||||
@@ -319,7 +315,6 @@ function parseNotePath(notePath) {
|
||||
}
|
||||
|
||||
export default {
|
||||
sortAlphabetically,
|
||||
resolveNotePath,
|
||||
resolveNotePathToSegments,
|
||||
getSomeNotePath,
|
||||
|
||||
Reference in New Issue
Block a user