mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +00:00
Show create agent button when not logged in agents page
This commit is contained in:
@@ -300,7 +300,6 @@ export default function Agents() {
|
|||||||
<div className={`pt-6 md:pt-8 flex justify-between`}>
|
<div className={`pt-6 md:pt-8 flex justify-between`}>
|
||||||
<h1 className="text-3xl flex items-center">Agents</h1>
|
<h1 className="text-3xl flex items-center">Agents</h1>
|
||||||
<div className="ml-auto float-right border p-2 pt-3 rounded-xl font-bold hover:bg-stone-100 dark:hover:bg-neutral-900">
|
<div className="ml-auto float-right border p-2 pt-3 rounded-xl font-bold hover:bg-stone-100 dark:hover:bg-neutral-900">
|
||||||
{authenticatedData && (
|
|
||||||
<CreateAgentCard
|
<CreateAgentCard
|
||||||
data={{
|
data={{
|
||||||
slug: "",
|
slug: "",
|
||||||
@@ -314,7 +313,11 @@ export default function Agents() {
|
|||||||
input_tools: [],
|
input_tools: [],
|
||||||
output_modes: [],
|
output_modes: [],
|
||||||
}}
|
}}
|
||||||
userProfile={authenticatedData}
|
userProfile={
|
||||||
|
authenticationLoading
|
||||||
|
? null
|
||||||
|
: (authenticatedData ?? null)
|
||||||
|
}
|
||||||
isMobileWidth={isMobileWidth}
|
isMobileWidth={isMobileWidth}
|
||||||
filesOptions={filesData || []}
|
filesOptions={filesData || []}
|
||||||
modelOptions={userConfig?.chat_model_options || []}
|
modelOptions={userConfig?.chat_model_options || []}
|
||||||
@@ -328,7 +331,6 @@ export default function Agents() {
|
|||||||
agentConfigurationOptions?.output_modes || {}
|
agentConfigurationOptions?.output_modes || {}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{showLoginPrompt && (
|
{showLoginPrompt && (
|
||||||
|
|||||||
Reference in New Issue
Block a user