diff --git a/src/public/app/entities/note_short.js b/src/public/app/entities/note_short.js index 39c0c712e..f7ca88c1d 100644 --- a/src/public/app/entities/note_short.js +++ b/src/public/app/entities/note_short.js @@ -14,7 +14,8 @@ const NOTE_TYPE_ICONS = { "render": "bx bx-extension", "search": "bx bx-file-find", "relation-map": "bx bx-map-alt", - "book": "bx bx-book" + "book": "bx bx-book", + "note-map": "bx bx-map-alt" }; /** diff --git a/src/public/app/layouts/desktop_layout.js b/src/public/app/layouts/desktop_layout.js index 02cba8895..bbb7db954 100644 --- a/src/public/app/layouts/desktop_layout.js +++ b/src/public/app/layouts/desktop_layout.js @@ -72,8 +72,8 @@ export default class DesktopLayout { .command("jumpToNote")) .child(new OpenNoteButtonWidget() .icon("bx-map-alt") - .title("Global link map") - .targetNote('globallinkmap')) + .title("Global note map") + .targetNote('globalnotemap')) .child(new ButtonWidget() .icon("bx-history") .title("Show recent changes") diff --git a/src/public/app/services/tree_context_menu.js b/src/public/app/services/tree_context_menu.js index 456b636c3..05ef111b3 100644 --- a/src/public/app/services/tree_context_menu.js +++ b/src/public/app/services/tree_context_menu.js @@ -30,6 +30,7 @@ class TreeContextMenu { { title: "Code", command: command, type: "code", uiIcon: "code" }, { title: "Saved search", command: command, type: "search", uiIcon: "file-find" }, { title: "Relation Map", command: command, type: "relation-map", uiIcon: "map-alt" }, + { title: "Note Map", command: command, type: "note-map", uiIcon: "map-alt" }, { title: "Render HTML note", command: command, type: "render", uiIcon: "extension" }, { title: "Book", command: command, type: "book", uiIcon: "book" } ]; diff --git a/src/public/app/widgets/note_detail.js b/src/public/app/widgets/note_detail.js index a0e5019d3..3e50dd4ab 100644 --- a/src/public/app/widgets/note_detail.js +++ b/src/public/app/widgets/note_detail.js @@ -20,7 +20,7 @@ import ReadOnlyTextTypeWidget from "./type_widgets/read_only_text.js"; import ReadOnlyCodeTypeWidget from "./type_widgets/read_only_code.js"; import NoneTypeWidget from "./type_widgets/none.js"; import attributeService from "../services/attributes.js"; -import GlobalLinkMapTypeWidget from "./type_widgets/global_link_map.js"; +import NoteMapTypeWidget from "./type_widgets/note_map.js"; const TPL = `
@@ -47,7 +47,7 @@ const typeWidgetClasses = { 'relation-map': RelationMapTypeWidget, 'protected-session': ProtectedSessionTypeWidget, 'book': BookTypeWidget, - 'globallinkmap': GlobalLinkMapTypeWidget + 'note-map': NoteMapTypeWidget }; export default class NoteDetailWidget extends NoteContextAwareWidget { @@ -173,10 +173,6 @@ export default class NoteDetailWidget extends NoteContextAwareWidget { type = 'editable-code'; } - if (type === 'special') { - type = note.noteId; - } - if (note.isProtected && !protectedSessionHolder.isProtectedSessionAvailable()) { type = 'protected-session'; } diff --git a/src/public/app/widgets/type_widgets/global_link_map.js b/src/public/app/widgets/type_widgets/note_map.js similarity index 90% rename from src/public/app/widgets/type_widgets/global_link_map.js rename to src/public/app/widgets/type_widgets/note_map.js index 39b0adbb7..a746d0d7e 100644 --- a/src/public/app/widgets/type_widgets/global_link_map.js +++ b/src/public/app/widgets/type_widgets/note_map.js @@ -3,13 +3,13 @@ import libraryLoader from "../../services/library_loader.js"; import server from "../../services/server.js"; import attributeService from "../../services/attributes.js"; -const TPL = `