mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-10 05:39:11 +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`}>
|
||||
<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">
|
||||
{authenticatedData && (
|
||||
<CreateAgentCard
|
||||
data={{
|
||||
slug: "",
|
||||
@@ -314,7 +313,11 @@ export default function Agents() {
|
||||
input_tools: [],
|
||||
output_modes: [],
|
||||
}}
|
||||
userProfile={authenticatedData}
|
||||
userProfile={
|
||||
authenticationLoading
|
||||
? null
|
||||
: (authenticatedData ?? null)
|
||||
}
|
||||
isMobileWidth={isMobileWidth}
|
||||
filesOptions={filesData || []}
|
||||
modelOptions={userConfig?.chat_model_options || []}
|
||||
@@ -328,7 +331,6 @@ export default function Agents() {
|
||||
agentConfigurationOptions?.output_modes || {}
|
||||
}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
{showLoginPrompt && (
|
||||
|
||||
Reference in New Issue
Block a user