feat(export): hide display-name section for selected batch dialogs

This commit is contained in:
tisonhuang
2026-03-04 20:41:17 +08:00
parent ab6db27ea7
commit 7858b40ce4

View File

@@ -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">