Disables model loading if koboldai_vaqrs._disable_load is set
This commit is contained in:
parent
6d4056c8f9
commit
3ed52b77da
|
@ -1340,6 +1340,7 @@ class system_settings(settings):
|
|||
self.seen_messages = []
|
||||
self.git_repository = ""
|
||||
self.git_branch = ""
|
||||
self._disable_load = False
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue