From 4f224550f64ac66c353047a4f95ab88bd9fc33e3 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 28 Feb 2025 21:26:16 +0200 Subject: [PATCH 1/4] Hide "persona connections" in create form --- public/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/script.js b/public/script.js index 859730359..104c4257d 100644 --- a/public/script.js +++ b/public/script.js @@ -7678,6 +7678,7 @@ export function select_selected_character(chid) { $('#create_button').attr('value', 'Save'); // what is the use case for this? $('#dupe_button').show(); $('#create_button_label').css('display', 'none'); + $('#char_connections_button').show(); // Hide the chat scenario button if we're peeking the group member defs $('#set_chat_scenario').toggle(!selected_group); @@ -7762,6 +7763,7 @@ function select_rm_create() { $('#create_button_label').css('display', ''); $('#create_button').attr('value', 'Create'); $('#dupe_button').hide(); + $('#char_connections_button').hide(); //create text poles $('#rm_button_back').css('display', ''); From ea59dcc30ec86387c92c2105ba0b3d512664cefc Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 28 Feb 2025 21:34:10 +0200 Subject: [PATCH 2/4] Equalize group action button heights --- public/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/index.html b/public/index.html index 8e3beaef8..89c9b76b0 100644 --- a/public/index.html +++ b/public/index.html @@ -5388,17 +5388,17 @@
- - - + + + - - - + + +
Language: - From 40720971c540434b83e81efdbfc1854fbb003bd7 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 28 Feb 2025 21:55:48 +0200 Subject: [PATCH 4/4] Hide unsupported language warning for 'en' --- public/scripts/i18n.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/scripts/i18n.js b/public/scripts/i18n.js index 67d9a45da..30d232941 100644 --- a/public/scripts/i18n.js +++ b/public/scripts/i18n.js @@ -132,10 +132,14 @@ async function getLocaleData(language) { return data; } +/** + * Gets a language object for the given language code. + * @param {string} language Language code + */ function findLang(language) { - var supportedLang = langs.find(x => x.lang === language); + const supportedLang = langs.find(x => x.lang === language); - if (!supportedLang) { + if (!supportedLang && language !== 'en') { console.warn(`Unsupported language: ${language}`); } return supportedLang;