mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Only show trash can when turnId is present
This commit is contained in:
parent
e17dc9f7b5
commit
a13760640c
1 changed files with 12 additions and 10 deletions
|
@ -744,6 +744,7 @@ const ChatMessage = forwardRef<HTMLDivElement, ChatMessageProps>((props, ref) =>
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
|
{props.chatMessage.turnId && (
|
||||||
<button
|
<button
|
||||||
title="Delete"
|
title="Delete"
|
||||||
className={`${styles.deleteButton}`}
|
className={`${styles.deleteButton}`}
|
||||||
|
@ -754,6 +755,7 @@ const ChatMessage = forwardRef<HTMLDivElement, ChatMessageProps>((props, ref) =>
|
||||||
className="hsl(var(--muted-foreground)) hover:text-red-500"
|
className="hsl(var(--muted-foreground)) hover:text-red-500"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
)}
|
||||||
<button
|
<button
|
||||||
title="Copy"
|
title="Copy"
|
||||||
className={`${styles.copyButton}`}
|
className={`${styles.copyButton}`}
|
||||||
|
|
Loading…
Reference in a new issue