|
@@ -38,20 +38,20 @@ export function ExportModal({ isOpen, onClose, data, onExport }: ExportModalProp
|
|
|
const formatOptions = [
|
|
const formatOptions = [
|
|
|
{
|
|
{
|
|
|
value: "csv",
|
|
value: "csv",
|
|
|
- label: t("callLogs.export.formats.csv"),
|
|
|
|
|
- description: t("callLogs.export.formats.csvDescription"),
|
|
|
|
|
|
|
+ label: t("callLogs.exportDialog.formats.csv"),
|
|
|
|
|
+ description: t("callLogs.exportDialog.formats.csvDescription"),
|
|
|
icon: FileText,
|
|
icon: FileText,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
value: "json",
|
|
value: "json",
|
|
|
- label: t("callLogs.export.formats.json"),
|
|
|
|
|
- description: t("callLogs.export.formats.jsonDescription"),
|
|
|
|
|
|
|
+ label: t("callLogs.exportDialog.formats.json"),
|
|
|
|
|
+ description: t("callLogs.exportDialog.formats.jsonDescription"),
|
|
|
icon: FileJson,
|
|
icon: FileJson,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
value: "excel",
|
|
value: "excel",
|
|
|
- label: t("callLogs.export.formats.excel"),
|
|
|
|
|
- description: t("callLogs.export.formats.excelDescription"),
|
|
|
|
|
|
|
+ label: t("callLogs.exportDialog.formats.excel"),
|
|
|
|
|
+ description: t("callLogs.exportDialog.formats.excelDescription"),
|
|
|
icon: FileSpreadsheet,
|
|
icon: FileSpreadsheet,
|
|
|
},
|
|
},
|
|
|
];
|
|
];
|
|
@@ -61,13 +61,13 @@ export function ExportModal({ isOpen, onClose, data, onExport }: ExportModalProp
|
|
|
<DialogContent className="max-w-md bg-slate-800 border-slate-700 text-white">
|
|
<DialogContent className="max-w-md bg-slate-800 border-slate-700 text-white">
|
|
|
<DialogHeader>
|
|
<DialogHeader>
|
|
|
<DialogTitle className="text-xl font-semibold text-white">
|
|
<DialogTitle className="text-xl font-semibold text-white">
|
|
|
- {t("callLogs.export.title")}
|
|
|
|
|
|
|
+ {t("callLogs.exportDialog.title")}
|
|
|
</DialogTitle>
|
|
</DialogTitle>
|
|
|
</DialogHeader>
|
|
</DialogHeader>
|
|
|
|
|
|
|
|
<div className="py-4">
|
|
<div className="py-4">
|
|
|
<p className="text-slate-400 text-sm mb-4">
|
|
<p className="text-slate-400 text-sm mb-4">
|
|
|
- {t("callLogs.export.description", { count: data.length })}
|
|
|
|
|
|
|
+ {t("callLogs.exportDialog.description", { count: data.length })}
|
|
|
</p>
|
|
</p>
|
|
|
|
|
|
|
|
<RadioGroup
|
|
<RadioGroup
|
|
@@ -119,7 +119,7 @@ export function ExportModal({ isOpen, onClose, data, onExport }: ExportModalProp
|
|
|
disabled={isExporting}
|
|
disabled={isExporting}
|
|
|
>
|
|
>
|
|
|
<Download className="w-4 h-4 mr-2" />
|
|
<Download className="w-4 h-4 mr-2" />
|
|
|
- {isExporting ? t("callLogs.export.downloading") : t("callLogs.export.download")}
|
|
|
|
|
|
|
+ {isExporting ? t("callLogs.exportDialog.downloading") : t("callLogs.exportDialog.download")}
|
|
|
</Button>
|
|
</Button>
|
|
|
</DialogFooter>
|
|
</DialogFooter>
|
|
|
</DialogContent>
|
|
</DialogContent>
|