mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge pull request #639 from phiharri/confirm_delete
This commit is contained in:
@@ -7820,9 +7820,11 @@ $(document).ready(function () {
|
||||
|
||||
|
||||
$(document).on("click", ".mes_edit_delete", async function () {
|
||||
const confirmation = await callPopup("Are you sure you want to delete this message?", 'confirm');
|
||||
if (!confirmation) {
|
||||
return;
|
||||
if (power_user.confirm_message_delete) {
|
||||
const confirmation = await callPopup("Are you sure you want to delete this message?", 'confirm');
|
||||
if (!confirmation) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
const mes = $(this).closest(".mes");
|
||||
|
Reference in New Issue
Block a user