Hide pinned controls on Web conversations
This commit is contained in:
@@ -410,13 +410,17 @@ export function getConversationListItemPresentation(conversation: ConversationIt
|
||||
}
|
||||
|
||||
export function getConversationActionAvailability(conversation: ConversationItem) {
|
||||
const canTogglePin = conversation.projectId !== "master-agent";
|
||||
return {
|
||||
canTogglePin,
|
||||
canTogglePin: false,
|
||||
togglePinLabel: conversation.topPinnedLabel || conversation.manualPinned ? "取消置顶" : "置顶",
|
||||
};
|
||||
}
|
||||
|
||||
export function getConversationPinnedBadgeLabel(conversation: ConversationItem) {
|
||||
void conversation;
|
||||
return "";
|
||||
}
|
||||
|
||||
export function getConversationActionsPath(projectId: string) {
|
||||
return `/api/v1/conversations/${encodeURIComponent(projectId)}/actions`;
|
||||
}
|
||||
@@ -526,11 +530,7 @@ export function ConversationList({
|
||||
</div>
|
||||
<div className="flex min-w-[98px] flex-col items-end gap-1">
|
||||
<div className="min-h-[18px] text-[11px] text-[#07C160]">
|
||||
{conversation.projectId === "master-agent"
|
||||
? "置顶"
|
||||
: conversation.topPinnedLabel
|
||||
? "置顶"
|
||||
: ""}
|
||||
{getConversationPinnedBadgeLabel(conversation)}
|
||||
</div>
|
||||
<div className="text-[12px] text-[#8C8C8C]">{conversation.latestReplyLabel}</div>
|
||||
{conversation.contextBudgetIndicator.visible &&
|
||||
|
||||
Reference in New Issue
Block a user