mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for toggles not showing up right in model backend settings
This commit is contained in:
@@ -4188,6 +4188,10 @@ function selected_model_info(sent_data) {
|
|||||||
toggle.checked = item['default'];
|
toggle.checked = item['default'];
|
||||||
toggle.onclick = onchange_event;
|
toggle.onclick = onchange_event;
|
||||||
toggle.setAttribute("data_type", item['unit']);
|
toggle.setAttribute("data_type", item['unit']);
|
||||||
|
toggle.classList.add("bootstrap_toggle");
|
||||||
|
$('.bootstrap_toggle').bootstrapToggle('state', item['default']);
|
||||||
|
toggle.classList.remove("bootstrap_toggle");
|
||||||
|
|
||||||
toggle.setAttribute("refresh_model_inputs", item['refresh_model_inputs']);
|
toggle.setAttribute("refresh_model_inputs", item['refresh_model_inputs']);
|
||||||
if ('check' in item) {
|
if ('check' in item) {
|
||||||
toggle.check_data = item['check'];
|
toggle.check_data = item['check'];
|
||||||
|
@@ -1863,6 +1863,9 @@ function selected_model_info(sent_data) {
|
|||||||
toggle.onclick = onchange_event;
|
toggle.onclick = onchange_event;
|
||||||
toggle.setAttribute("data_type", item['unit']);
|
toggle.setAttribute("data_type", item['unit']);
|
||||||
toggle.setAttribute("refresh_model_inputs", item['refresh_model_inputs']);
|
toggle.setAttribute("refresh_model_inputs", item['refresh_model_inputs']);
|
||||||
|
toggle.classList.add("bootstrap_toggle");
|
||||||
|
$('.bootstrap_toggle').bootstrapToggle('state', item['default']);
|
||||||
|
toggle.classList.remove("bootstrap_toggle");
|
||||||
if ('check' in item) {
|
if ('check' in item) {
|
||||||
toggle.check_data = item['check'];
|
toggle.check_data = item['check'];
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user