Skip to content

Commit

Permalink
fixed bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
djcooke committed Mar 27, 2024
1 parent 88653fb commit 8f4836e
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions ts/data/case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1771,16 +1771,21 @@ function showDownloadDialog(items: Case[]) {
undefined,
"Excel"
);
showFormDialog("Download", [reportSelect, formatSelect], (result) => {
switch (result.report) {
case REPORT_FULL_DEPTH_SUMMARY:
case REPORT_DARE_INPUT_SHEET:
downloadCaseReport(result.report, result.formatOptions, items);
break;
default:
throw new Error(`Invalid report: ${result.report}`);
showFormDialog(
"Download Case Data",
[reportSelect, formatSelect],
"Download",
(result) => {
switch (result.report) {
case REPORT_FULL_DEPTH_SUMMARY:
case REPORT_DARE_INPUT_SHEET:
downloadCaseReport(result.report, result.formatOptions, items);
break;
default:
throw new Error(`Invalid report: ${result.report}`);
}
}
});
);
}

function downloadCaseReport(report: string, formatOptions: any, items: Case[]) {
Expand Down

0 comments on commit 8f4836e

Please sign in to comment.