fixing border on startup on special prompts pages. see #603

This commit is contained in:
Mic 2026-02-03 01:15:00 +01:00
parent 73d6fdedc8
commit 2b8a9b9881
3 changed files with 12 additions and 3 deletions

View file

@ -34,7 +34,8 @@ import {
import { import {
getAccountsList, getAccountsList,
normalizeStringList, normalizeStringList,
isAPIKeyValue isAPIKeyValue,
setTomSelectBorder
} from "../../js/mzta-utils.js"; } from "../../js/mzta-utils.js";
import { import {
initializeSpecificIntegrationUI initializeSpecificIntegrationUI
@ -341,6 +342,7 @@ async function restoreOptions() {
} }
if (element.tomselect) { if (element.tomselect) {
element.tomselect.setValue(element.value, true); element.tomselect.setValue(element.value, true);
setTomSelectBorder(element.tomselect);
} }
}else{ }else{
console.error("[ThunderAI] Unhandled input type:", element.type); console.error("[ThunderAI] Unhandled input type:", element.type);

View file

@ -38,7 +38,8 @@ import {
sanitizeHtml, sanitizeHtml,
validateCustomData_ChatGPTWeb, validateCustomData_ChatGPTWeb,
getChatGPTWebModelsList_HTML, getChatGPTWebModelsList_HTML,
openTab openTab,
setTomSelectBorder
} from "../../js/mzta-utils.js"; } from "../../js/mzta-utils.js";
import { taLogger } from "../../js/mzta-logger.js"; import { taLogger } from "../../js/mzta-logger.js";
import { import {
@ -580,6 +581,7 @@ function populateConnectionUI(tr, id, prefix, selectId) {
inputEl.value = restoreValue; inputEl.value = restoreValue;
inputEl.tomselect.sync(); inputEl.tomselect.sync();
inputEl.tomselect.setValue(restoreValue, true); inputEl.tomselect.setValue(restoreValue, true);
setTomSelectBorder(inputEl.tomselect);
} else { } else {
inputEl.value = val || ''; inputEl.value = val || '';
} }

View file

@ -31,7 +31,11 @@ import {
} from "../../js/mzta-placeholders.js"; } from "../../js/mzta-placeholders.js";
import { textareaAutocomplete } from "../../js/mzta-placeholders-autocomplete.js"; import { textareaAutocomplete } from "../../js/mzta-placeholders-autocomplete.js";
import { taSpamReport } from '../../js/mzta-spamreport.js'; import { taSpamReport } from '../../js/mzta-spamreport.js';
import { getAccountsList, isAPIKeyValue } from "../../js/mzta-utils.js"; import {
getAccountsList,
isAPIKeyValue,
setTomSelectBorder
} from "../../js/mzta-utils.js";
import { import {
initializeSpecificIntegrationUI initializeSpecificIntegrationUI
} from "../_lib/connection-ui.js"; } from "../_lib/connection-ui.js";
@ -328,6 +332,7 @@ async function restoreOptions() {
} }
if (element.tomselect) { if (element.tomselect) {
element.tomselect.setValue(element.value, true); element.tomselect.setValue(element.value, true);
setTomSelectBorder(element.tomselect);
} }
}else{ }else{
console.error("[ThunderAI] Unhandled input type:", element.type); console.error("[ThunderAI] Unhandled input type:", element.type);