Skip to content

Commit 7c926f0

Browse files
committed
feat: add previewModal logic to advancedModal
1 parent db4a6c9 commit 7c926f0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,12 @@ export default class MediaDbPlugin extends Plugin {
176176
return;
177177
}
178178

179+
const proceed: boolean = await this.modalHelper.openPreviewModal(selectResults, async (result) => {
180+
return true;
181+
})
182+
if (!proceed)
183+
return;
184+
179185
await this.createMediaDbNotes(selectResults);
180186
}
181187

0 commit comments

Comments
 (0)