mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Fix getting file-toggle-button element in chat of web app
This commit is contained in:
parent
fa7b40ab86
commit
7e277e9381
1 changed files with 2 additions and 2 deletions
|
@ -1965,11 +1965,11 @@ To get started, just start typing below. You can also type / to see a list of co
|
|||
var nofilesmessage = document.getElementsByClassName("no-files-message")[0];
|
||||
if(allFiles.length === 0){
|
||||
nofilesmessage.innerHTML = `<a class="inline-chat-link" href="https://docs.khoj.dev/category/clients/">How to upload files</a>`;
|
||||
document.getElementById("file-toggle-button").style.display = "none";
|
||||
document.getElementsByClassName("file-toggle-button")[0].style.display = "none";
|
||||
}
|
||||
else{
|
||||
nofilesmessage.innerHTML = "";
|
||||
document.getElementById("file-toggle-button").style.display = "block";
|
||||
document.getElementsByClassName("file-toggle-button")[0].style.display = "block";
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
|
|
Loading…
Reference in a new issue