mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-23 07:27:41 +01:00
Refine message for dupe confirm
This commit is contained in:
parent
e38a9df538
commit
ea68e70ac7
@ -3151,7 +3151,11 @@ async function DupeChar() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const confirm = await callPopup('Are you sure you want to duplicate this character?', 'confirm');
|
const confirm = await callPopup(`
|
||||||
|
<h3>Are you sure you want to duplicate this character?</h3>
|
||||||
|
<span>If you just want to start a new chat with the same character, use "Start new chat" option in the bottom-left options menu.</span><br><br>`,
|
||||||
|
'confirm',
|
||||||
|
);
|
||||||
|
|
||||||
if (!confirm) {
|
if (!confirm) {
|
||||||
console.log('User cancelled duplication');
|
console.log('User cancelled duplication');
|
||||||
@ -5598,11 +5602,19 @@ function onScenarioOverrideRemoveClick() {
|
|||||||
$(this).closest('.scenario_override').find('.chat_scenario').val('').trigger('input');
|
$(this).closest('.scenario_override').find('.chat_scenario').val('').trigger('input');
|
||||||
}
|
}
|
||||||
|
|
||||||
function callPopup(text, type, inputValue = '', { okButton, rows } = {}) {
|
function callPopup(text, type, inputValue = '', { okButton, rows, wide, large } = {}) {
|
||||||
if (type) {
|
if (type) {
|
||||||
popup_type = type;
|
popup_type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (wide) {
|
||||||
|
$("#dialogue_popup").addClass("wide_dialogue_popup");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (large) {
|
||||||
|
$("#dialogue_popup").addClass("large_dialogue_popup");
|
||||||
|
}
|
||||||
|
|
||||||
$("#dialogue_popup_cancel").css("display", "inline-block");
|
$("#dialogue_popup_cancel").css("display", "inline-block");
|
||||||
switch (popup_type) {
|
switch (popup_type) {
|
||||||
case "avatarToCrop":
|
case "avatarToCrop":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user