clean up tree service WIP

This commit is contained in:
zadam
2020-02-02 22:04:28 +01:00
parent d5ae3802d1
commit b63ecba695
14 changed files with 68 additions and 118 deletions

View File

@@ -4,6 +4,7 @@ import utils from "../services/utils.js";
import dateNoteService from "../services/date_notes.js";
import treeService from "../services/tree.js";
import server from "../services/server.js";
import appContext from "../services/app_context.js";
const TPL = `
<div class="calendar-widget">
@@ -58,7 +59,7 @@ export default class CalendarWidget extends CollapsibleWidget {
const note = await dateNoteService.getDateNote(date);
if (note) {
treeService.activateNote(note.noteId);
appContext.getActiveTabContext().setNote(note.noteId);
}
else {
alert("Cannot find day note");