mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Revert "breakout new chat button from dropdown menu"
This reverts commit 05100d295e.
This commit is contained in:
3 files changed
+16
-25
No files matched your search
@@ -7,6 +7,7 @@ import {
|
||||
DropdownMenuTrigger,
|
||||
} from '@/components/ui/dropdown-menu';
|
||||
import {
|
||||
MessageSquarePlus,
|
||||
History,
|
||||
Folder,
|
||||
Copy,
|
||||
@@ -21,6 +22,7 @@ import { useQueryClient } from '@tanstack/react-query';
|
||||
interface ProjectTitleMenuProps {
|
||||
projectId: string;
|
||||
projectName: string;
|
||||
onNewChat: () => void;
|
||||
onGitHistory: () => void;
|
||||
onDuplicate: () => void;
|
||||
onDelete: () => void;
|
||||
@@ -32,6 +34,7 @@ interface ProjectTitleMenuProps {
|
||||
export function ProjectTitleMenu({
|
||||
projectId,
|
||||
projectName,
|
||||
onNewChat,
|
||||
onGitHistory,
|
||||
onDuplicate,
|
||||
onDelete,
|
||||
@@ -104,6 +107,15 @@ export function ProjectTitleMenu({
|
||||
Rollback
|
||||
</DropdownMenuItem>
|
||||
|
||||
<DropdownMenuItem
|
||||
onClick={onNewChat}
|
||||
disabled={isAILoading}
|
||||
className="gap-2"
|
||||
>
|
||||
<MessageSquarePlus className="h-4 w-4" />
|
||||
New Chat
|
||||
</DropdownMenuItem>
|
||||
|
||||
<DropdownMenuItem
|
||||
onClick={onDuplicate}
|
||||
disabled={isAnyLoading}
|
||||
|
||||
Reference in new issue
Block a user