diff --git a/src/khoj/interface/web/assets/icons/sync.svg b/src/khoj/interface/web/assets/icons/sync.svg new file mode 100644 index 00000000..19319be8 --- /dev/null +++ b/src/khoj/interface/web/assets/icons/sync.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/khoj/interface/web/config.html b/src/khoj/interface/web/config.html index 2e310ce6..f0537a2a 100644 --- a/src/khoj/interface/web/config.html +++ b/src/khoj/interface/web/config.html @@ -162,10 +162,12 @@
- -
-
- +
@@ -478,28 +480,16 @@ }) } - var configure = document.getElementById("configure"); - configure.addEventListener("click", function(event) { - event.preventDefault(); - updateIndex( - force=false, - successText="Saved!", - errorText="Unable to configure. Raise issue on Khoj Github or Discord.", - button=configure, - loadingText="Saving...", - emoji="💾"); - }); - - var reinitialize = document.getElementById("reinitialize"); - reinitialize.addEventListener("click", function(event) { + var sync = document.getElementById("sync"); + sync.addEventListener("click", function(event) { event.preventDefault(); updateIndex( force=true, - successText="Reinitialized!", - errorText="Unable to reinitialize. Raise issue on Khoj Github or Discord.", - button=reinitialize, - loadingText="Reinitializing...", - emoji="🔄"); + successText="Synced!", + errorText="Unable to sync. Raise issue on Khoj Github or Discord.", + button=sync, + loadingText="Syncing...", + emoji=""); }); function updateIndex(force, successText, errorText, button, loadingText, emoji) {