Disable delete button if no server queries have occurred

This commit is contained in:
James Ketr 2025-04-26 18:02:41 -07:00
parent 895589c235
commit 9875b58af7

View File

@ -499,7 +499,7 @@ const Conversation = forwardRef<ConversationHandle, ConversationProps>(({
<Box key="jobActions" sx={{ display: "flex", justifyContent: "center", flexDirection: "row" }}>
<DeleteConfirmation
label={resetLabel || "all data"}
disabled={sessionId === undefined || processingMessage !== undefined || filteredConversation.findIndex(m => m.role !== 'content') === -1}
disabled={sessionId === undefined || processingMessage !== undefined || noInteractions}
onDelete={() => { reset(); resetAction && resetAction(); }} />
<Tooltip title={actionLabel || "Send"}>
<span style={{ display: "flex", flexGrow: 1 }}>