fix(chat): hide export/transcribe/decrypt actions in standalone chat

This commit is contained in:
tisonhuang
2026-03-04 19:48:32 +08:00
parent dab33c4e60
commit c204855a71

View File

@@ -3703,7 +3703,7 @@ function ChatPage(props: ChatPageProps) {
)}
</div>
<div className="header-actions">
{isGroupChatSession(currentSession.username) && (
{!standaloneSessionWindow && isGroupChatSession(currentSession.username) && (
<button
className="icon-btn group-analytics-btn"
onClick={handleGroupAnalytics}
@@ -3721,6 +3721,7 @@ function ChatPage(props: ChatPageProps) {
<Users size={18} />
</button>
)}
{!standaloneSessionWindow && (
<button
className={`icon-btn export-session-btn${isExportActionBusy ? ' exporting' : ''}`}
onClick={handleExportCurrentSession}
@@ -3733,6 +3734,8 @@ function ChatPage(props: ChatPageProps) {
<Download size={18} />
)}
</button>
)}
{!standaloneSessionWindow && (
<button
className={`icon-btn batch-transcribe-btn${isBatchTranscribing ? ' transcribing' : ''}`}
onClick={() => {
@@ -3751,6 +3754,8 @@ function ChatPage(props: ChatPageProps) {
<Mic size={18} />
)}
</button>
)}
{!standaloneSessionWindow && (
<button
className={`icon-btn batch-decrypt-btn${isBatchDecrypting ? ' transcribing' : ''}`}
onClick={() => {
@@ -3771,6 +3776,7 @@ function ChatPage(props: ChatPageProps) {
<ImageIcon size={18} />
)}
</button>
)}
<div className="jump-calendar-anchor" ref={jumpCalendarWrapRef}>
<button
className={`icon-btn jump-to-time-btn ${showJumpPopover ? 'active' : ''}`}