Skip to content

Commit

Permalink
feat: add a count when confirm transform
Browse files Browse the repository at this point in the history
  • Loading branch information
yy4382 committed Oct 20, 2024
1 parent 054adec commit 4644ffb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/confirm-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ export class TransformConfirmModal extends ConfirmModal {

this.setTitle("Confirm Export");

contentEl.createEl("p", {
text: `You are about to export ${this.posts.length} files.`,
});

const innerContentEl = contentEl.createDiv({ cls: "cfm-inner-content" });
this.posts.forEach((post) => {
const { filename, content } = stringifyPost(post);
Expand Down

0 comments on commit 4644ffb

Please sign in to comment.