diff --git a/app/src/util/history.ts b/app/src/util/history.ts
index e533c2e20..e53ffdf77 100644
--- a/app/src/util/history.ts
+++ b/app/src/util/history.ts
@@ -432,14 +432,15 @@ export const openHistory = () => {
});
break;
} else if (type === "removeRepoTagSnapshot" || type === "removeCloudRepoTagSnapshot") {
- fetchPost("/api/repo/" + type, {
- tag: target.parentElement.getAttribute("data-tag")
- }, () => {
- if (target.parentElement.parentElement.childElementCount === 1) {
- target.parentElement.parentElement.innerHTML = `
${window.siyuan.languages.emptyContent}`
- } else {
- target.parentElement.remove();
- }
+ const tag = target.parentElement.getAttribute("data-tag");
+ confirmDialog(window.siyuan.languages.delete, `${window.siyuan.languages.confirmDelete} ${tag}?`, () => {
+ fetchPost("/api/repo/" + type, {tag}, () => {
+ if (target.parentElement.parentElement.childElementCount === 1) {
+ target.parentElement.parentElement.innerHTML = `${window.siyuan.languages.emptyContent}`
+ } else {
+ target.parentElement.remove();
+ }
+ });
});
} else if (type === "uploadSnapshot") {
fetchPost("/api/repo/uploadCloudSnapshot", {