diff --git a/src/tracker.ts b/src/tracker.ts index 6596a27..54bbb2f 100644 --- a/src/tracker.ts +++ b/src/tracker.ts @@ -363,6 +363,9 @@ function addEditableTableRow(tracker: Tracker, entry: Entry, table: HTMLTableEle .setIcon("lucide-trash") .setDisabled(entryRunning) .onClick(async () => { + if (!confirm("Are you sure you want to delete this entry?")) { + return; + } removeEntry(tracker.entries, entry); await saveTracker(tracker, this.app, getFile(), getSectionInfo()); });