diff --git a/src/public/app/dialogs/clone_to.js b/src/public/app/dialogs/clone_to.js index 081dcc458..34910aa1e 100644 --- a/src/public/app/dialogs/clone_to.js +++ b/src/public/app/dialogs/clone_to.js @@ -4,6 +4,7 @@ import treeService from "../services/tree.js"; import toastService from "../services/toast.js"; import froca from "../services/froca.js"; import branchService from "../services/branches.js"; +import appContext from "../services/app_context.js"; const $dialog = $("#clone-to-dialog"); const $form = $("#clone-to-form"); @@ -14,6 +15,10 @@ const $noteList = $("#clone-to-note-list"); let clonedNoteIds; export async function showDialog(noteIds) { + if (!noteIds || noteIds.length === 0) { + noteIds = [ appContext.tabManager.getActiveContextNoteId() ] + } + clonedNoteIds = []; for (const noteId of noteIds) { diff --git a/src/public/app/layouts/desktop_layout.js b/src/public/app/layouts/desktop_layout.js index 07af6c5bd..7293d83c8 100644 --- a/src/public/app/layouts/desktop_layout.js +++ b/src/public/app/layouts/desktop_layout.js @@ -37,6 +37,7 @@ import NoteInfoWidget from "../widgets/type_property_widgets/note_info_widget.js import BookPropertiesWidget from "../widgets/type_property_widgets/book_properties.js"; import ShowNoteSourceButton from "../widgets/buttons/show_note_source.js"; import LinkMapWidget from "../widgets/type_property_widgets/link_map.js"; +import NotePathsWidget from "../widgets/type_property_widgets/note_paths.js"; export default class DesktopLayout { constructor(customWidgets) { @@ -112,6 +113,7 @@ export default class DesktopLayout { .section(new PromotedAttributesWidget()) .section(new OwnedAttributeListWidget()) .section(new InheritedAttributesWidget()) + .section(new NotePathsWidget()) .section(new LinkMapWidget()) .section(new NoteInfoWidget()) .button(new ButtonWidget() diff --git a/src/public/app/widgets/buttons/create_pane_button.js b/src/public/app/widgets/buttons/create_pane_button.js index bd6fa602b..898b4b9b7 100644 --- a/src/public/app/widgets/buttons/create_pane_button.js +++ b/src/public/app/widgets/buttons/create_pane_button.js @@ -4,7 +4,7 @@ export default class CreatePaneButton extends ButtonWidget { constructor() { super(); - this.icon("bx-window-open bx-rotate-90") + this.icon("bx-dock-right") .title("Create new pane") .titlePlacement("bottom") .onClick(widget => widget.triggerCommand("openNewPane", { ntxId: widget.getNtxId() })); diff --git a/src/public/app/widgets/containers/collapsible_section_container.js b/src/public/app/widgets/containers/collapsible_section_container.js index e0b731683..3e5e670c5 100644 --- a/src/public/app/widgets/containers/collapsible_section_container.js +++ b/src/public/app/widgets/containers/collapsible_section_container.js @@ -164,7 +164,7 @@ export default class CollapsibleSectionContainer extends NoteContextAwareWidget async refreshWithNote(note, noExplicitActivation = false) { let $sectionToActivate, $lastActiveSection; - this.$titleContainer.empty().append('
'); + this.$titleContainer.empty(); for (const sectionWidget of this.sectionWidgets) { const ret = sectionWidget.getTitle(note); diff --git a/src/public/app/widgets/note_paths.js b/src/public/app/widgets/type_property_widgets/note_paths.js similarity index 61% rename from src/public/app/widgets/note_paths.js rename to src/public/app/widgets/type_property_widgets/note_paths.js index 017ecb7bc..d3f42c4ec 100644 --- a/src/public/app/widgets/note_paths.js +++ b/src/public/app/widgets/type_property_widgets/note_paths.js @@ -1,21 +1,18 @@ -import NoteContextAwareWidget from "./note_context_aware_widget.js"; -import treeService from "../services/tree.js"; -import linkService from "../services/link.js"; +import NoteContextAwareWidget from "../note_context_aware_widget.js"; +import treeService from "../../services/tree.js"; +import linkService from "../../services/link.js"; const TPL = ` -