Update for Horde Switch to hide it when on readonly

This commit is contained in:
ebolam
2022-09-07 10:47:13 -04:00
parent b700d5e86e
commit e13f0c36ff
2 changed files with 5 additions and 1 deletions

View File

@@ -2139,3 +2139,7 @@ h2 .material-icons-outlined {
padding: 3px;
}
}
.horde_trigger[model_model="ReadOnly"] {
display: none;
}

View File

@@ -44,7 +44,7 @@
</button>
<select class="var_sync_model_selected_preset settings_select presets" onchange='sync_to_server(this)'><option>Preset</option></select>
{% if not on_colab %}
<br/><input type=checkbox data-size="mini" data-onstyle="success" data-toggle="toggle" class='var_sync_system_horde_share' onchange='sync_to_server(this)'> Share with Horde
<div class="horde_trigger var_sync_alt_model_model"><input type=checkbox data-size="mini" data-onstyle="success" data-toggle="toggle" class='var_sync_system_horde_share' onchange='sync_to_server(this)'> Share with Horde </div>
<span class="helpicon material-icons-outlined" title="Shares your GPU with other KoboldAI users. Does not share data/stories.">help_icon</span>
{% endif %}
</div>