add support for the persistent #sortDirection and #sortFoldersFirst (one time UI action exists), closes #3046

This commit is contained in:
zadam
2022-08-07 23:51:23 +02:00
parent 3c26e00fe1
commit 616e2c1c29
6 changed files with 11 additions and 7 deletions

View File

@@ -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,