mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Confirmation for WI entry delete
This commit is contained in:
@ -718,6 +718,10 @@ async function deleteWorldInfoEntry(data, uid) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!confirm(`Delete the entry with UID: ${uid}? This action is irreversible!`)) {
|
||||||
|
throw new Error("User cancelled deletion");
|
||||||
|
}
|
||||||
|
|
||||||
delete data.entries[uid];
|
delete data.entries[uid];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user