diff --git a/src/interface/desktop/chat.html b/src/interface/desktop/chat.html index c8d02545..88ce02aa 100644 --- a/src/interface/desktop/chat.html +++ b/src/interface/desktop/chat.html @@ -880,14 +880,18 @@ function renderFirstRunSetupMessage() { first_run_message = `

Hi 👋🏾, to get started:

    -
  1. Generate an API token Khoj Web settings
  2. -
  3. Paste it into the API Key field Khoj Desktop settings
  4. +
  5. Generate an API token Khoj Web settings
  6. +
  7. Paste it into the API Key field Khoj Desktop settings
` .trim() .replace(/(\r\n|\n|\r)/gm, ""); renderMessage(first_run_message, "khoj", null, null, true); + // Open relevant setup links + document.getElementById("first-run-web-config").addEventListener('click', (event) => window.navigateAPI.navigateToWebSettings('config')); + document.getElementById("first-run-desktop-config").addEventListener('click', (event) => window.navigateAPI.navigateToSettings('config.html')); + // Disable chat input field and update placeholder text document.getElementById("chat-input").setAttribute("disabled", "disabled"); document.getElementById("chat-input").setAttribute("placeholder", "Configure Khoj to enable chat");