Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung committed Dec 2, 2024
1 parent b2a06f2 commit 5e01779
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export function AssistantMessageSection({
onContextClick={onCodeContextClick}
enableTooltip={enableDeveloperMode}
showExternalLink={false}
showClientCode
showClientCodeIcon
onTooltipClick={() => {
setConversationIdForDev(message.id)
setDevPanelOpen(true)
Expand Down
6 changes: 3 additions & 3 deletions ee/tabby-ui/components/chat/code-references.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ interface ContextReferencesProps {
onTooltipClick?: () => void
highlightIndex?: number | undefined
showExternalLink: boolean
showClientCode: boolean
showClientCodeIcon: boolean
}

export const CodeReferences = forwardRef<
Expand All @@ -49,7 +49,7 @@ export const CodeReferences = forwardRef<
onTooltipClick,
highlightIndex,
showExternalLink,
showClientCode,
showClientCodeIcon,
isInEditor
},
ref
Expand Down Expand Up @@ -98,7 +98,7 @@ export const CodeReferences = forwardRef<
onContextClick={ctx => onContextClick?.(ctx, true)}
isHighlighted={highlightIndex === index}
clickable={isInEditor || !!item.git_url}
showClientCodeIcon={showClientCode}
showClientCodeIcon={showClientCodeIcon}
/>
)
})}
Expand Down
2 changes: 1 addition & 1 deletion ee/tabby-ui/components/chat/question-answer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ function AssistantMessageCard(props: AssistantMessageCardProps) {
}}
// When onApplyInEditor is null, it means isInEditor === false, thus there's no need to showExternalLink
showExternalLink={!!onApplyInEditor}
showClientCode={!onApplyInEditor}
showClientCodeIcon={!onApplyInEditor}
highlightIndex={relevantCodeHighlightIndex}
triggerClassname="md:pt-0"
/>
Expand Down

0 comments on commit 5e01779

Please sign in to comment.