feat: add previewModal logic to advancedModal
This commit is contained in:
parent
db4a6c98a3
commit
7c926f00af
1 changed files with 6 additions and 0 deletions
|
|
@ -176,6 +176,12 @@ export default class MediaDbPlugin extends Plugin {
|
|||
return;
|
||||
}
|
||||
|
||||
const proceed: boolean = await this.modalHelper.openPreviewModal(selectResults, async (result) => {
|
||||
return true;
|
||||
})
|
||||
if (!proceed)
|
||||
return;
|
||||
|
||||
await this.createMediaDbNotes(selectResults);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue