fixing border on startup on special prompts pages. see #603
This commit is contained in:
parent
73d6fdedc8
commit
2b8a9b9881
3 changed files with 12 additions and 3 deletions
|
|
@ -34,7 +34,8 @@ import {
|
|||
import {
|
||||
getAccountsList,
|
||||
normalizeStringList,
|
||||
isAPIKeyValue
|
||||
isAPIKeyValue,
|
||||
setTomSelectBorder
|
||||
} from "../../js/mzta-utils.js";
|
||||
import {
|
||||
initializeSpecificIntegrationUI
|
||||
|
|
@ -341,6 +342,7 @@ async function restoreOptions() {
|
|||
}
|
||||
if (element.tomselect) {
|
||||
element.tomselect.setValue(element.value, true);
|
||||
setTomSelectBorder(element.tomselect);
|
||||
}
|
||||
}else{
|
||||
console.error("[ThunderAI] Unhandled input type:", element.type);
|
||||
|
|
|
|||
|
|
@ -38,7 +38,8 @@ import {
|
|||
sanitizeHtml,
|
||||
validateCustomData_ChatGPTWeb,
|
||||
getChatGPTWebModelsList_HTML,
|
||||
openTab
|
||||
openTab,
|
||||
setTomSelectBorder
|
||||
} from "../../js/mzta-utils.js";
|
||||
import { taLogger } from "../../js/mzta-logger.js";
|
||||
import {
|
||||
|
|
@ -580,6 +581,7 @@ function populateConnectionUI(tr, id, prefix, selectId) {
|
|||
inputEl.value = restoreValue;
|
||||
inputEl.tomselect.sync();
|
||||
inputEl.tomselect.setValue(restoreValue, true);
|
||||
setTomSelectBorder(inputEl.tomselect);
|
||||
} else {
|
||||
inputEl.value = val || '';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,11 @@ import {
|
|||
} from "../../js/mzta-placeholders.js";
|
||||
import { textareaAutocomplete } from "../../js/mzta-placeholders-autocomplete.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 {
|
||||
initializeSpecificIntegrationUI
|
||||
} from "../_lib/connection-ui.js";
|
||||
|
|
@ -328,6 +332,7 @@ async function restoreOptions() {
|
|||
}
|
||||
if (element.tomselect) {
|
||||
element.tomselect.setValue(element.value, true);
|
||||
setTomSelectBorder(element.tomselect);
|
||||
}
|
||||
}else{
|
||||
console.error("[ThunderAI] Unhandled input type:", element.type);
|
||||
|
|
|
|||
Loading…
Reference in a new issue