not refreshing tree after sort operation because it messes with everything ...

This commit is contained in:
zadam 2019-04-14 18:32:56 +02:00
parent 1bd769827d
commit 47cb7c7f5e
2 changed files with 3 additions and 4 deletions

View File

@ -5,6 +5,9 @@ import infoService from "./info.js";
import messagingService from "./messaging.js";
import server from "./server.js";
/**
* TreeCache keeps a read only cache of note tree structure in frontend's memory.
*/
class TreeCache {
constructor() {
this.init();

View File

@ -1,7 +1,6 @@
const eventService = require('./events');
const scriptService = require('./script');
const treeService = require('./tree');
const messagingService = require('./messaging');
const log = require('./log');
const Attribute = require('../entities/attribute');
@ -29,9 +28,6 @@ eventService.subscribe(eventService.NOTE_TITLE_CHANGED, async note => {
for (const parent of parents) {
if (await parent.hasLabel("sorted")) {
await treeService.sortNotesAlphabetically(parent.noteId);
messagingService.refreshTree();
break; // sending the message once is enough
}
}
}