Skip to content

Commit

Permalink
translate code
Browse files Browse the repository at this point in the history
  • Loading branch information
luisrguerra committed Jan 2, 2024
1 parent d0e5c7e commit acacc52
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ <h5 style="text-align: center;">API Keys</h5>
element.innerText = text;
}

function setButtonEnviarText(text){
function setButtonSendText(text){
const element = document.getElementById('btnSendUserInput');
element.innerHTML = text;
}
Expand All @@ -667,14 +667,14 @@ <h5 style="text-align: center;">API Keys</h5>
loading = true;
disableUserInteraction();
const loadingIcon = '<span class="mdi mdi-loading mdi-spin"></span>';
setButtonEnviarText(loadingIcon);
setButtonSendText(loadingIcon);
}

function disableLoading(){
loading = false;
enableUserInteraction();
const sendIcon = '<span class="mdi mdi-send"></span>';
setButtonEnviarText(sendIcon);
setButtonSendText(sendIcon);
clearInput()
}

Expand Down Expand Up @@ -769,7 +769,7 @@ <h5 style="text-align: center;">API Keys</h5>
}
onChangeModeSelect();

async function onClickEnviarButton(){
async function onClickSendButton(){
const element = document.getElementById('btnSendUserInput');
element.addEventListener('click', async () => {

Expand All @@ -790,7 +790,7 @@ <h5 style="text-align: center;">API Keys</h5>

});
}
onClickEnviarButton();
onClickSendButton();

async function onClickClearChatButton(){
const button = document.getElementById('btnClearChat');
Expand Down

0 comments on commit acacc52

Please sign in to comment.