diff --git a/src/khoj/interface/web/chat.html b/src/khoj/interface/web/chat.html index b9122b3e..ced34ca7 100644 --- a/src/khoj/interface/web/chat.html +++ b/src/khoj/interface/web/chat.html @@ -901,14 +901,8 @@ To get started, just start typing below. You can also type / to see a list of co // Display indexing success message flashStatusInChatInput("✅ File indexed successfully"); renderAllFiles(); - //get the selected-files ul first - var selectedFiles = document.getElementsByClassName("selected-files")[0]; - const escapedFileName = fileName.replace(/\./g, '\\.'); - const newFile = selectedFiles.querySelector(`#${escapedFileName}`); - if(!newFile){ - addFileFilterToConversation(fileName); - loadFileFiltersFromConversation(); - } + addFileFilterToConversation(fileName); + loadFileFiltersFromConversation(); }) .catch((error) => { console.log(error); @@ -1841,11 +1835,12 @@ To get started, just start typing below. You can also type / to see a list of co allFiles = data; var nofilesmessage = document.getElementsByClassName("no-files-message")[0]; if(allFiles.length === 0){ - nofilesmessage.innerHTML = "No files found. Visit "; - nofilesmessage.innerHTML += "Documentation" + nofilesmessage.innerHTML = `How to upload files`; + document.getElementById("file-toggle-button").style.display = "none"; } else{ nofilesmessage.innerHTML = ""; + document.getElementById("file-toggle-button").style.display = "block"; } }) .catch((error) => { @@ -2076,7 +2071,7 @@ To get started, just start typing below. You can also type / to see a list of co
Files
-