Browse Source

feat: delete confirm

close #1
pull/8/head
sigoden 3 years ago
parent
commit
be3ae2fe00
  1. 2
      src/assets/index.js

2
src/assets/index.js

@ -125,6 +125,8 @@ async function deletePath(index) { @@ -125,6 +125,8 @@ async function deletePath(index) {
const file = DATA.paths[index];
if (!file) return;
if (!confirm(`Delete \`${file.name}\`?`)) return;
try {
const res = await fetch(getUrl(file.name), {
method: "DELETE",

Loading…
Cancel
Save