Skip to content

Commit

Permalink
Hide download desktop app message in web app if synced files exist
Browse files Browse the repository at this point in the history
  • Loading branch information
debanjum committed Nov 10, 2023
1 parent 30a9674 commit ddac693
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/khoj/interface/web/content_source_computer_input.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h2 class="section-title">
<span class="card-title-text">Files</span>
<div class="instructions">
<p class="card-description">Manage files from your computer</p>
<p id="desktop-client" class="card-description">Download the <a href="https://download.khoj.dev">Khoj Desktop app</a> to sync files from your computer</p>
<p id="get-desktop-client" class="card-description">Download the <a href="https://download.khoj.dev">Khoj Desktop app</a> to sync documents from your computer</p>
</div>
</h2>
<div class="section-manage-files">
Expand Down Expand Up @@ -56,8 +56,9 @@ <h2 class="section-title">

if (data.length == 0) {
document.getElementById("delete-all-files").style.display = "none";
indexedFiles.innerHTML = "<div class='card-description'>Use the <a href='https://download.khoj.dev'>Khoj Desktop client</a> to index files.</div>";
indexedFiles.innerHTML = "<div class='card-description'>No documents synced with Khoj</div>";
} else {
document.getElementById("get-desktop-client").style.display = "none";
document.getElementById("delete-all-files").style.display = "block";
}

Expand Down

0 comments on commit ddac693

Please sign in to comment.