feat(08-05): wire export commands to use simplified overloads
- ExportCsvAsync branches on IsSimplifiedMode to call simplified WriteAsync overload - ExportHtmlAsync branches on IsSimplifiedMode to call simplified WriteAsync overload - Standard PermissionEntry export path unchanged when simplified mode is off Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -342,6 +342,9 @@ public partial class PermissionsViewModel : FeatureViewModelBase
|
|||||||
if (dialog.ShowDialog() != true) return;
|
if (dialog.ShowDialog() != true) return;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (IsSimplifiedMode && SimplifiedResults.Count > 0)
|
||||||
|
await _csvExportService.WriteAsync(SimplifiedResults.ToList(), dialog.FileName, CancellationToken.None);
|
||||||
|
else
|
||||||
await _csvExportService.WriteAsync(Results, dialog.FileName, CancellationToken.None);
|
await _csvExportService.WriteAsync(Results, dialog.FileName, CancellationToken.None);
|
||||||
OpenFile(dialog.FileName);
|
OpenFile(dialog.FileName);
|
||||||
}
|
}
|
||||||
@@ -365,6 +368,9 @@ public partial class PermissionsViewModel : FeatureViewModelBase
|
|||||||
if (dialog.ShowDialog() != true) return;
|
if (dialog.ShowDialog() != true) return;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (IsSimplifiedMode && SimplifiedResults.Count > 0)
|
||||||
|
await _htmlExportService.WriteAsync(SimplifiedResults.ToList(), dialog.FileName, CancellationToken.None);
|
||||||
|
else
|
||||||
await _htmlExportService.WriteAsync(Results, dialog.FileName, CancellationToken.None);
|
await _htmlExportService.WriteAsync(Results, dialog.FileName, CancellationToken.None);
|
||||||
OpenFile(dialog.FileName);
|
OpenFile(dialog.FileName);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user