fix
This commit is contained in:
parent
a1b3196b9a
commit
64542a15aa
BIN
static/main-v0.4.wasm
Normal file
BIN
static/main-v0.4.wasm
Normal file
Binary file not shown.
@ -27,7 +27,7 @@
|
||||
<script src="wasm_exec.js"></script>
|
||||
<script>
|
||||
const go = new Go();
|
||||
WebAssembly.instantiateStreaming(fetch("main-v0.3.wasm"), go.importObject).then((result) => {
|
||||
WebAssembly.instantiateStreaming(fetch("main-v0.4.wasm"), go.importObject).then((result) => {
|
||||
go.run(result.instance);
|
||||
});
|
||||
</script>
|
||||
|
@ -79,11 +79,10 @@
|
||||
function toggleSendButton() {
|
||||
// check if generate-multiple-messages exists
|
||||
var generateMultipleMessages = document.getElementById('generate-multiple-messages');
|
||||
var disabled = textarea.value.trim().length === 0 || document.getElementsByClassName('selected icon-llm').length === 0 || generateMultipleMessages !== null;
|
||||
document.getElementById('chat-input-send-btn').disabled = disabled;
|
||||
document.getElementById('chat-input-send-btn').disabled = textarea.value.trim().length === 0 || document.getElementsByClassName('selected icon-llm').length === 0 || generateMultipleMessages !== null;
|
||||
// Do the same for all element with an id that start with redo-button- or edit-button-
|
||||
const buttons = document.querySelectorAll('[id^="redo-button-"], [id^="edit-button-"]');
|
||||
buttons.forEach(button => button.disabled = disabled);
|
||||
buttons.forEach(button => button.disabled = document.getElementsByClassName('selected icon-llm').length === 0 || generateMultipleMessages !== null);
|
||||
}
|
||||
|
||||
function onClickSendButton() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user