mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 07:16:51 +00:00
fix(chat): hide export/transcribe/decrypt actions in standalone chat
This commit is contained in:
@@ -3703,7 +3703,7 @@ function ChatPage(props: ChatPageProps) {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="header-actions">
|
<div className="header-actions">
|
||||||
{isGroupChatSession(currentSession.username) && (
|
{!standaloneSessionWindow && isGroupChatSession(currentSession.username) && (
|
||||||
<button
|
<button
|
||||||
className="icon-btn group-analytics-btn"
|
className="icon-btn group-analytics-btn"
|
||||||
onClick={handleGroupAnalytics}
|
onClick={handleGroupAnalytics}
|
||||||
@@ -3721,6 +3721,7 @@ function ChatPage(props: ChatPageProps) {
|
|||||||
<Users size={18} />
|
<Users size={18} />
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
|
{!standaloneSessionWindow && (
|
||||||
<button
|
<button
|
||||||
className={`icon-btn export-session-btn${isExportActionBusy ? ' exporting' : ''}`}
|
className={`icon-btn export-session-btn${isExportActionBusy ? ' exporting' : ''}`}
|
||||||
onClick={handleExportCurrentSession}
|
onClick={handleExportCurrentSession}
|
||||||
@@ -3733,6 +3734,8 @@ function ChatPage(props: ChatPageProps) {
|
|||||||
<Download size={18} />
|
<Download size={18} />
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
|
)}
|
||||||
|
{!standaloneSessionWindow && (
|
||||||
<button
|
<button
|
||||||
className={`icon-btn batch-transcribe-btn${isBatchTranscribing ? ' transcribing' : ''}`}
|
className={`icon-btn batch-transcribe-btn${isBatchTranscribing ? ' transcribing' : ''}`}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@@ -3751,6 +3754,8 @@ function ChatPage(props: ChatPageProps) {
|
|||||||
<Mic size={18} />
|
<Mic size={18} />
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
|
)}
|
||||||
|
{!standaloneSessionWindow && (
|
||||||
<button
|
<button
|
||||||
className={`icon-btn batch-decrypt-btn${isBatchDecrypting ? ' transcribing' : ''}`}
|
className={`icon-btn batch-decrypt-btn${isBatchDecrypting ? ' transcribing' : ''}`}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@@ -3771,6 +3776,7 @@ function ChatPage(props: ChatPageProps) {
|
|||||||
<ImageIcon size={18} />
|
<ImageIcon size={18} />
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
|
)}
|
||||||
<div className="jump-calendar-anchor" ref={jumpCalendarWrapRef}>
|
<div className="jump-calendar-anchor" ref={jumpCalendarWrapRef}>
|
||||||
<button
|
<button
|
||||||
className={`icon-btn jump-to-time-btn ${showJumpPopover ? 'active' : ''}`}
|
className={`icon-btn jump-to-time-btn ${showJumpPopover ? 'active' : ''}`}
|
||||||
|
|||||||
Reference in New Issue
Block a user