Confirmation for WI entry delete
This commit is contained in:
parent
7b3f242454
commit
06825331d6
|
@ -718,6 +718,10 @@ async function deleteWorldInfoEntry(data, uid) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!confirm(`Delete the entry with UID: ${uid}? This action is irreversible!`)) {
|
||||
throw new Error("User cancelled deletion");
|
||||
}
|
||||
|
||||
delete data.entries[uid];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue