mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-30 19:03:01 +01:00
Hide download desktop app message in web app if synced files exist
This commit is contained in:
parent
30a9674f25
commit
ddac693762
1 changed files with 3 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
||||||
<span class="card-title-text">Files</span>
|
<span class="card-title-text">Files</span>
|
||||||
<div class="instructions">
|
<div class="instructions">
|
||||||
<p class="card-description">Manage files from your computer</p>
|
<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>
|
</div>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="section-manage-files">
|
<div class="section-manage-files">
|
||||||
|
@ -56,8 +56,9 @@
|
||||||
|
|
||||||
if (data.length == 0) {
|
if (data.length == 0) {
|
||||||
document.getElementById("delete-all-files").style.display = "none";
|
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 {
|
} else {
|
||||||
|
document.getElementById("get-desktop-client").style.display = "none";
|
||||||
document.getElementById("delete-all-files").style.display = "block";
|
document.getElementById("delete-all-files").style.display = "block";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue