Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
chore: Reposition 'Remove project' option for better usability
Roushan Singh73b241c16f5b
diff --git a/web-app/src/containers/ThreadList.tsx b/web-app/src/containers/ThreadList.tsxindex a8dadbb62..734aec710 100644--- a/web-app/src/containers/ThreadList.tsx+++ b/web-app/src/containers/ThreadList.tsx@@ -262,32 +262,29 @@ const SortableItem = memo(</DropdownMenuItem>)))}- {thread.metadata?.project && (- <>- <DropdownMenuSeparator />- <DropdownMenuItem- onClick={(e) => {- e.stopPropagation()- // Remove project from metadata- const projectName = thread.metadata?.project?.name- updateThread(thread.id, {- metadata: {- ...thread.metadata,- project: undefined,- },- })- toast.success(- `Thread removed from "${projectName}" successfully`- )- }}- >- <IconX size={16} />- <span>Remove from project</span>- </DropdownMenuItem>- </>- )}</DropdownMenuSubContent></DropdownMenuSub>+ {thread.metadata?.project && (+ <DropdownMenuItem+ onClick={(e) => {+ e.stopPropagation()+ // Remove project from metadata+ const projectName = thread.metadata?.project?.name+ updateThread(thread.id, {+ metadata: {+ ...thread.metadata,+ project: undefined,+ },+ })+ toast.success(+ `Thread removed from "${projectName}" successfully`+ )+ }}+ >+ <IconX size={16} />+ <span>Remove</span>+ </DropdownMenuItem>+ )}<DropdownMenuSeparator /><DeleteThreadDialogthread={thread}