Skip to content

Commit 971ca61

Browse files
committed
[fix] Cancel the image export function
TicketNo: DTS2026051534905
1 parent 95f441c commit 971ca61

1 file changed

Lines changed: 10 additions & 13 deletions

File tree

‎src/web-ui/src/flow_chat/components/modern/ExportImageButton.tsx‎

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
* Export dialog turns as long images.
33
* Uses React rendering to match FlowChat styles.
44
* Uses modern-screenshot (fork of html-to-image with better CSS var / font / CORS handling).
5+
*
6+
* NOTE: Temporarily disabled — the export button is hidden. Keep the export
7+
* infrastructure in place for when the underlying capture/save issues are resolved.
58
*/
69

710
import React, { useState, useCallback, useRef } from 'react';
811
import { createRoot } from 'react-dom/client';
9-
import { Image, Loader2 } from 'lucide-react';
1012
import { FlowChatStore } from '../../store/FlowChatStore';
1113
import { notificationService } from '@/shared/notification-system';
1214
import { FlowTextBlock } from '../FlowTextBlock';
1315
import { FlowToolCard } from '../FlowToolCard';
14-
import { Tooltip } from '@/component-library';
1516
import type { DialogTurn, FlowTextItem, FlowToolItem, FlowThinkingItem } from '../../types/flow-chat';
1617
import { i18nService } from '@/infrastructure/i18n';
1718
import { workspaceAPI } from '@/infrastructure/api';
@@ -534,17 +535,13 @@ export const ExportImageButton: React.FC<ExportImageButtonProps> = ({
534535
}
535536
}, [getDialogTurn]);
536537

537-
return (
538-
<Tooltip content={isExporting ? i18nService.t('flow-chat:exportImage.exporting') : i18nService.t('flow-chat:exportImage.exportToImage')} placement="top">
539-
<button
540-
className={`model-round-item__action-btn model-round-item__export-btn ${className}`}
541-
onClick={handleExport}
542-
disabled={isExporting}
543-
>
544-
{isExporting ? <Loader2 size={14} className="spinning" /> : <Image size={14} />}
545-
</button>
546-
</Tooltip>
547-
);
538+
// Currently unused — kept for re-enable.
539+
void (handleExport as unknown as React.MouseEventHandler);
540+
void (isExporting as boolean);
541+
void (isExportingRef as React.MutableRefObject<boolean>);
542+
void (className as string);
543+
544+
return null;
548545
};
549546

550547
ExportImageButton.displayName = 'ExportImageButton';

0 commit comments

Comments
 (0)