added new label "sorted" which will keep children notes alphabetically sorted, fixes #82

This commit is contained in:
azivner
2018-08-01 09:26:02 +02:00
parent 9452fc236b
commit 2d24bf81dd
12 changed files with 100 additions and 10 deletions

View File

@@ -505,7 +505,13 @@ async function showTree() {
initFancyTree(tree);
}
messagingService.subscribeToMessages(syncData => {
messagingService.subscribeToMessages(message => {
if (message.type === 'refresh-tree') {
reload();
}
});
messagingService.subscribeToSyncMessages(syncData => {
if (syncData.some(sync => sync.entityName === 'branches')
|| syncData.some(sync => sync.entityName === 'notes')) {