fix dialog opening

This commit is contained in:
zadam 2019-09-02 19:56:52 +02:00
parent ae8a2bfb1b
commit a981df6282
3 changed files with 5 additions and 4 deletions

View File

@ -129,10 +129,11 @@ $noteTabContainer.on("click", ".export-note-button", function () {
return;
}
exportDialog.showDialog(treeService.getActiveNode(), 'single');
import('./dialogs/export.js').then(d => d.showDialog(treeService.getActiveNode(), 'single'));
});
$noteTabContainer.on("click", ".import-files-button", () => importDialog.showDialog(treeService.getActiveNode()));
$noteTabContainer.on("click", ".import-files-button",
() => import('./dialogs/import.js').then(d => d.showDialog(treeService.getActiveNode())));
$noteTabContainer.on("click", ".print-note-button", async function () {
if ($(this).hasClass("disabled")) {

View File

@ -10,7 +10,7 @@ const $title = $("#note-revision-title");
let revisionItems = [];
let note;
async function showCurrentNoteRevisions() {
export async function showCurrentNoteRevisions() {
await showNoteRevisionsDialog(noteDetailService.getActiveNoteId());
}

View File

@ -48,7 +48,7 @@ function registerEntrypoints() {
return;
}
import(NOTE_REVISIONS).then(d => d.showDialog());
import(NOTE_REVISIONS).then(d => d.showCurrentNoteRevisions());
});
$noteTabContainer.on("click", ".show-source-button", function() {