Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Fix #6929: Resolve merge conflict
Renato Neto1ca3a5458aa2
diff --cc apps/client/src/widgets/note_wrapper.tsindex ccaa5614d9,ccaa5614d9..b23c041756--- a/apps/client/src/widgets/note_wrapper.ts+++ b/apps/client/src/widgets/note_wrapper.ts@@@ -19,25 -19,25 +19,21 @@@ export default class NoteWrapperWidgetsetNoteContextEvent({ noteContext }: EventData<"setNoteContext">) {this.noteContext = noteContext;--this.refresh();}noteSwitchedAndActivatedEvent({ noteContext }: EventData<"setNoteContext">) {this.noteContext = noteContext;--this.refresh();}noteSwitchedEvent({ noteContext }: EventData<"setNoteContext">) {this.noteContext = noteContext;--this.refresh();}activeContextChangedEvent({ noteContext }: EventData<"setNoteContext">) {this.noteContext = noteContext;--this.refresh();}diff --cc apps/client/src/widgets/type_widgets/relation_map/utils.tsindex e52a40fbf2,d21857a398..fa3f8a2595--- a/apps/client/src/widgets/type_widgets/relation_map/utils.ts+++ b/apps/client/src/widgets/type_widgets/relation_map/utils.ts@@@ -32,3 -35,26 +35,36 @@@ export function getMousePosition(evt: My: ((evt.clientY ?? 0) - rect.top) / zoom};}++ export function promptForRelationName(defaultValue?: string): Promise<string | null> {+ return dialog.prompt({+ message: t("relation_map.specify_new_relation_name"),+ defaultValue,+ shown: ({ $answer }) => {+ if (!$answer) {+ return;+ }++ $answer.on("keyup", () => {+ const attrName = utils.filterAttributeName($answer.val() as string);+ $answer.val(attrName);+ });+++ $answer.on("keydown", (e) => {++ if (e.key === "Enter") {++ $answer[0].dispatchEvent(new Event("input", { bubbles: true }));++ }++ });++++ $answer.on("blur", () => {++ $answer[0].dispatchEvent(new Event("input", { bubbles: true }));++ });+++ attribute_autocomplete.initAttributeNameAutocomplete({+ $el: $answer,+ attributeType: "relation",+ open: true+ });+ }+ });+ }diff --cc test-results/desktop-e2e-example-First-setup/trace.zipindex 0000000000,0000000000..cc5251154cnew file mode 100644Binary files differ