From ddac693762cd9fec8d367cee56f3bb590cd364a7 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Thu, 9 Nov 2023 17:47:00 -0800 Subject: [PATCH] Hide download desktop app message in web app if synced files exist --- src/khoj/interface/web/content_source_computer_input.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/khoj/interface/web/content_source_computer_input.html b/src/khoj/interface/web/content_source_computer_input.html index aba3d8ee..01b01e5a 100644 --- a/src/khoj/interface/web/content_source_computer_input.html +++ b/src/khoj/interface/web/content_source_computer_input.html @@ -7,7 +7,7 @@ Files

Manage files from your computer

-

Download the Khoj Desktop app to sync files from your computer

+

Download the Khoj Desktop app to sync documents from your computer

@@ -56,8 +56,9 @@ if (data.length == 0) { document.getElementById("delete-all-files").style.display = "none"; - indexedFiles.innerHTML = "
Use the Khoj Desktop client to index files.
"; + indexedFiles.innerHTML = "
No documents synced with Khoj
"; } else { + document.getElementById("get-desktop-client").style.display = "none"; document.getElementById("delete-all-files").style.display = "block"; }