Skip to content

Commit

Permalink
Implement datatree-output-component csv export in electron
Browse files Browse the repository at this point in the history
Fixes #824

Signed-off-by: hriday-panchasara <hriday.panchasara@ericsson.com>
  • Loading branch information
hriday-panchasara authored and marco-miller committed Sep 7, 2022
1 parent 3eff16f commit 3e1dca5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export class DataTreeOutputComponent extends AbstractOutputComponent<AbstractOut

const link = document.createElement('a');
link.setAttribute('href', `data:text/csv;charset=utf-8,${encodeURIComponent(tableString)}`);
link.setAttribute('download', (this.props.traceName ?? 'export') + ' - ' + this.props.outputDescriptor.name);
link.setAttribute('download', (this.props.traceName ?? 'export') + ' - ' + this.props.outputDescriptor.name + '.csv');

link.style.display = 'none';
document.body.appendChild(link);
Expand Down

0 comments on commit 3e1dca5

Please sign in to comment.