feat: Add Reports for teams (#3116)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
6
app/javascript/dashboard/helper/downloadCsvFile.js
Normal file
6
app/javascript/dashboard/helper/downloadCsvFile.js
Normal file
@@ -0,0 +1,6 @@
|
||||
export const downloadCsvFile = (fileName, fileContent) => {
|
||||
const link = document.createElement('a');
|
||||
link.download = fileName;
|
||||
link.href = `data:text/csv;charset=utf-8,` + encodeURI(fileContent);
|
||||
link.click();
|
||||
};
|
||||
Reference in New Issue
Block a user