260803_01_ENH: 에디터에 QR 코드 삽입 추가
This commit is contained in:
@@ -17,6 +17,7 @@ export type ListDownloadDialogProps = {
|
||||
open?: boolean
|
||||
onOpenChange?: (open: boolean) => void
|
||||
mode: ListDownloadMode
|
||||
selectedSids: string[]
|
||||
filterSummary?: string[]
|
||||
onDownload: (payload: ListDownloadPayload) => void | Promise<void>
|
||||
}
|
||||
@@ -33,6 +34,7 @@ const ListDownloadDialog = ({
|
||||
open,
|
||||
onOpenChange,
|
||||
mode,
|
||||
selectedSids,
|
||||
filterSummary,
|
||||
onDownload,
|
||||
}: ListDownloadDialogProps) => {
|
||||
@@ -55,7 +57,7 @@ const ListDownloadDialog = ({
|
||||
}
|
||||
|
||||
const handleDownload = async () => {
|
||||
if (!validateApplyFilterTarget(target, filterSummary)) return
|
||||
if (!validateApplyFilterTarget(target, { selectedCount: selectedSids.length, filterSummary })) return
|
||||
|
||||
if (mode === 'contact-history') {
|
||||
const hasFrom = contactHistoryDateFrom.length > 0
|
||||
@@ -120,7 +122,13 @@ const ListDownloadDialog = ({
|
||||
) : null}
|
||||
<div className="rounded-md border p-4 space-y-4">
|
||||
<p className="text-lg font-semibold">다운로드 범위</p>
|
||||
<ApplyFilterOption value={target} onValueChange={setTarget} idPrefix="download-scope-target" filterSummary={filterSummary} />
|
||||
<ApplyFilterOption
|
||||
value={target}
|
||||
onValueChange={setTarget}
|
||||
idPrefix="download-scope-target"
|
||||
selectedSids={selectedSids}
|
||||
filterSummary={filterSummary}
|
||||
/>
|
||||
</div>
|
||||
{mode === 'contact-history' ? (
|
||||
<div className="rounded-md border p-4 space-y-4">
|
||||
|
||||
Reference in New Issue
Block a user