mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 13:23:15 +00:00
Fix evaluating connected to server status in Obsidian plugin
Only show welcome status message when khojApiKey not set and khojUrl set to khoj cloud
This commit is contained in:
@@ -157,7 +157,7 @@ export function getBackendStatusMessage(
|
|||||||
khojApiKey: string
|
khojApiKey: string
|
||||||
): string {
|
): string {
|
||||||
// Welcome message with default settings. Khoj cloud always expects an API key.
|
// Welcome message with default settings. Khoj cloud always expects an API key.
|
||||||
if (!!khojApiKey && khojUrl === 'https://app.khoj.dev')
|
if (!khojApiKey && khojUrl === 'https://app.khoj.dev')
|
||||||
return `🌈 Welcome to Khoj! Get your API key from ${khojUrl}/config#clients and set it in the Khoj plugin settings on Obsidian`;
|
return `🌈 Welcome to Khoj! Get your API key from ${khojUrl}/config#clients and set it in the Khoj plugin settings on Obsidian`;
|
||||||
|
|
||||||
if (!connectedToServer)
|
if (!connectedToServer)
|
||||||
|
|||||||
Reference in New Issue
Block a user