converted import dialog to new pattern

This commit is contained in:
zadam
2022-06-16 14:21:24 +02:00
parent 40bbe380d3
commit 595e16cc6f
7 changed files with 160 additions and 153 deletions

View File

@@ -57,7 +57,7 @@ export default class NoteActionsWidget extends NoteContextAwareWidget {
});
this.$importNoteButton = this.$widget.find('.import-files-button');
this.$importNoteButton.on("click", () => import('../../dialogs/import.js').then(d => d.showDialog(this.noteId)));
this.$importNoteButton.on("click", () => this.triggerCommand("showImportDialog", {noteId: this.noteId}));
this.$widget.on('click', '.dropdown-item', () => this.$widget.find("[data-toggle='dropdown']").dropdown('toggle'));