mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 07:16:51 +00:00
feat(export): hide display-name section for selected batch dialogs
This commit is contained in:
@@ -3492,6 +3492,18 @@ function ExportPage() {
|
|||||||
const isContentTextDialog = isContentScopeDialog && exportDialog.contentType === 'text'
|
const isContentTextDialog = isContentScopeDialog && exportDialog.contentType === 'text'
|
||||||
const shouldShowFormatSection = !isContentScopeDialog || isContentTextDialog
|
const shouldShowFormatSection = !isContentScopeDialog || isContentTextDialog
|
||||||
const shouldShowMediaSection = !isContentScopeDialog
|
const shouldShowMediaSection = !isContentScopeDialog
|
||||||
|
const shouldShowDisplayNameSection = !(
|
||||||
|
exportDialog.scope === 'sns' ||
|
||||||
|
(
|
||||||
|
exportDialog.scope === 'content' &&
|
||||||
|
(
|
||||||
|
exportDialog.contentType === 'voice' ||
|
||||||
|
exportDialog.contentType === 'image' ||
|
||||||
|
exportDialog.contentType === 'video' ||
|
||||||
|
exportDialog.contentType === 'emoji'
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
const isTabCountComputing = isSharedTabCountsLoading && !isSharedTabCountsReady
|
const isTabCountComputing = isSharedTabCountsLoading && !isSharedTabCountsReady
|
||||||
const isSnsCardStatsLoading = !hasSeededSnsStats
|
const isSnsCardStatsLoading = !hasSeededSnsStats
|
||||||
const taskRunningCount = tasks.filter(task => task.status === 'running').length
|
const taskRunningCount = tasks.filter(task => task.status === 'running').length
|
||||||
@@ -4301,6 +4313,7 @@ function ExportPage() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{shouldShowDisplayNameSection && (
|
||||||
<div className="dialog-section">
|
<div className="dialog-section">
|
||||||
<h4>发送者名称显示</h4>
|
<h4>发送者名称显示</h4>
|
||||||
<div className="display-name-options" role="radiogroup" aria-label="发送者名称显示">
|
<div className="display-name-options" role="radiogroup" aria-label="发送者名称显示">
|
||||||
@@ -4322,6 +4335,7 @@ function ExportPage() {
|
|||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="dialog-actions">
|
<div className="dialog-actions">
|
||||||
|
|||||||
Reference in New Issue
Block a user