Disables model loading if koboldai_vaqrs._disable_load is set

This commit is contained in:
ebolam 2023-12-16 19:08:28 -05:00
parent 6d4056c8f9
commit 3ed52b77da
3 changed files with 7 additions and 1 deletions

View File

@ -1340,6 +1340,7 @@ class system_settings(settings):
self.seen_messages = []
self.git_repository = ""
self.git_branch = ""
self._disable_load = False
@dataclass

View File

@ -3592,6 +3592,11 @@ body.NotConnected {
display: none;
}
.settings_button[system__disable_load="true"] {
cursor: not-allowed;
pointer-events: none;
}
@font-face {
font-family: 'Material Icons Outlined';
font-style: normal;

View File

@ -39,7 +39,7 @@
</div>
<div style="display: flex; justify-content: center;">
{% if not hide_ai_menu %}
<button class="settings_button" onclick="socket.emit('load_model_button', {});">
<button class="settings_button var_sync_alt_system__disable_load" onclick="socket.emit('load_model_button', {});">
<span class="material-icons-outlined cursor" tooltip="Load Model" style="font-size: 1.4em;">folder_open</span>
<span class="button_label">Load Model</span>
</button>