Split WI editor and global WI select

This commit is contained in:
Cohee
2023-06-20 17:52:40 +03:00
parent 2663a8370f
commit df184bd46a
4 changed files with 120 additions and 111 deletions

View File

@ -23,9 +23,7 @@ import {
world_info_depth,
world_info,
getWorldInfoPrompt,
selectImportedWorldInfo,
setWorldInfoSettings,
deleteWorldInfo,
world_info_recursive,
world_info_case_sensitive,
world_info_match_whole_words,
@ -4958,12 +4956,10 @@ function callPopup(text, type, inputValue = '') {
$("#dialogue_popup_ok").text("Ok");
$("#dialogue_popup_cancel").css("display", "none");
break;
case "world_imported":
case "new_chat":
case "confirm":
$("#dialogue_popup_ok").text("Yes");
break;
case "del_world":
case "del_group":
case "rename_chat":
case "del_chat":
@ -6347,15 +6343,9 @@ $(document).ready(function () {
},
});
}
if (popup_type === "world_imported") {
selectImportedWorldInfo();
}
if (popup_type == "alternate_greeting" && menu_type !== "create") {
createOrEditCharacter();
}
if (popup_type === "del_world" && world_info) {
deleteWorldInfo(world_info);
}
if (popup_type === "del_group") {
const groupId = $("#dialogue_popup").data("group_id");