mirror of
https://github.com/zadam/trilium.git
synced 2025-10-27 16:26:31 +01:00
refactor(react/dialogs): integrate proper closing of modal
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { useRef, useState } from "preact/compat";
|
||||
import { closeActiveDialog } from "../../services/dialog";
|
||||
import { t } from "../../services/i18n";
|
||||
import FormGroup from "../react/FormGroup";
|
||||
import FormRadioGroup from "../react/FormRadioGroup";
|
||||
@@ -38,7 +37,7 @@ function IncludeNoteDialogComponent() {
|
||||
return;
|
||||
}
|
||||
|
||||
closeActiveDialog();
|
||||
setShown(false);
|
||||
includeNote(suggestion.notePath, textTypeWidget);
|
||||
}}
|
||||
footer={<Button text={t("include_note.button_include")} keyboardShortcut="Enter" />}
|
||||
|
||||
Reference in New Issue
Block a user