Skip to content

Commit

Permalink
chore: missing create conversation button when there is no conversati…
Browse files Browse the repository at this point in the history
…on is selected (janhq#478)

* chore: missing create conversation button when there is no conversation selected

* chore: typo
  • Loading branch information
louis-jan authored Oct 27, 2023
1 parent d695a37 commit f175d6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion web/app/_components/InputToolbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,15 @@ const InputToolbar: React.FC = () => {
}

if (!activeConvoId) {
return null
return (
<div className="my-3 flex justify-center gap-2">
<SecondaryButton
onClick={onNewConversationClick}
title="New Conversation"
icon={<PlusIcon width={16} height={16} />}
/>
</div>
)
}
if (
(activeConvoId && inputState === 'model-mismatch') ||
Expand Down
2 changes: 1 addition & 1 deletion web/screens/Settings/CorePlugins/PluginsCatalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const PluginCatalog = () => {
Installed{' '}
{hasUpdateVersionPlugins
? `v${installedPlugin.version}`
: 'latest version'}
: 'the latest version'}
</p>
)}
{isActivePlugin && hasUpdateVersionPlugins && (
Expand Down

0 comments on commit f175d6c

Please sign in to comment.