add missing canvas-note entries in helper functions

Conflicts:
	src/public/app/entities/note_short.js
	src/public/app/services/tree_context_menu.js
This commit is contained in:
Tom Free 2021-11-25 13:47:56 +01:00 committed by Tom
parent 0469962c5e
commit a894c19c2b
4 changed files with 5 additions and 3 deletions

View file

@ -16,7 +16,8 @@ const NOTE_TYPE_ICONS = {
"relation-map": "bx bx-map-alt",
"book": "bx bx-book",
"note-map": "bx bx-map-alt",
"mermaid": "bx bx-selection"
"mermaid": "bx bx-selection",
"canvas-note": "bx bx-pen"
};
/**

View file

@ -10,6 +10,7 @@ import FileTypeWidget from "./type_widgets/file.js";
import ImageTypeWidget from "./type_widgets/image.js";
import RenderTypeWidget from "./type_widgets/render.js";
import RelationMapTypeWidget from "./type_widgets/relation_map.js";
import CanvasNoteTypeWidget from "./type_widgets/canvas_note.js";
import ProtectedSessionTypeWidget from "./type_widgets/protected_session.js";
import BookTypeWidget from "./type_widgets/book.js";
import appContext from "../services/app_context.js";
@ -50,6 +51,7 @@ const typeWidgetClasses = {
'search': NoneTypeWidget,
'render': RenderTypeWidget,
'relation-map': RelationMapTypeWidget,
'canvas-note': CanvasNoteTypeWidget,
'protected-session': ProtectedSessionTypeWidget,
'book': BookTypeWidget,
'note-map': NoteMapTypeWidget

View file

@ -11,6 +11,7 @@ const NOTE_TYPES = [
{ type: "text", mime: "text/html", title: "Text", selectable: true },
{ type: "relation-map", mime: "application/json", title: "Relation Map", selectable: true },
{ type: "render", mime: '', title: "Render Note", selectable: true },
{ type: "canvas-note", mime: 'application/json', title: "Canvas Note", selectable: true },
{ type: "book", mime: '', title: "Book", selectable: true },
{ type: "mermaid", mime: 'text/mermaid', title: "Mermaid Diagram", selectable: true },
{ type: "code", mime: 'text/plain', title: "Code", selectable: true }

View file

@ -217,8 +217,6 @@ function changeTitle(req) {
noteService.triggerNoteTitleChanged(note);
}
console.log(note, await note.getContent());
return note;
}