mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 03:00:41 +01:00
button for creating subnote in relation map and other unrelated changed, WIP
This commit is contained in:
@@ -187,6 +187,12 @@ async function loadNoteDetail(noteId) {
|
||||
noteTypeService.setNoteType(currentNote.type);
|
||||
noteTypeService.setNoteMime(currentNote.mime);
|
||||
|
||||
for (const componentType in components) {
|
||||
if (componentType !== currentNote.type) {
|
||||
components[componentType].cleanup();
|
||||
}
|
||||
}
|
||||
|
||||
$noteDetailComponents.hide();
|
||||
|
||||
const newSessionCreated = await handleProtectedSession();
|
||||
|
||||
Reference in New Issue
Block a user