diff --git a/src/public/app/widgets/note_type.js b/src/public/app/widgets/note_type.js index b0cc88b69..7744838d3 100644 --- a/src/public/app/widgets/note_type.js +++ b/src/public/app/widgets/note_type.js @@ -5,7 +5,8 @@ import NoteContextAwareWidget from "./note_context_aware_widget.js"; const NOTE_TYPES = [ { type: "file", title: "File", selectable: false }, { type: "image", title: "Image", selectable: false }, - { type: "search", title: "Saved search", selectable: false }, + { type: "search", title: "Saved Search", selectable: false }, + { type: "note-map", mime: '', title: "Note Map", selectable: false }, { type: "text", mime: "text/html", title: "Text", selectable: true }, { type: "relation-map", mime: "application/json", title: "Relation Map", selectable: true }, @@ -15,6 +16,8 @@ const NOTE_TYPES = [ { type: "code", mime: 'text/plain', title: "Code", selectable: true } ]; +const NOT_SELECTABLE_NOTE_TYPES = NOTE_TYPES.filter(nt => !nt.selectable).map(nt => nt.type); + const TPL = `