@bento-core/table 1.0.1-ccdihub.30 → 1.0.1-ccdihub.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -32,13 +32,14 @@ const DownloadButton = _ref => {
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
const client = (0, _client.useApolloClient)();
|
|
35
|
-
const downloadFile = 'CCDI Inventory';
|
|
35
|
+
const downloadFile = 'CCDI Inventory ';
|
|
36
36
|
async function downloadSCSVFile() {
|
|
37
37
|
const {
|
|
38
38
|
query,
|
|
39
|
-
paginationAPIField
|
|
39
|
+
paginationAPIField,
|
|
40
|
+
name
|
|
40
41
|
} = table;
|
|
41
|
-
const downloadFileName = downloadFile.concat(
|
|
42
|
+
const downloadFileName = downloadFile.concat(name, ' download');
|
|
42
43
|
const result = await client.query({
|
|
43
44
|
query,
|
|
44
45
|
variables: _objectSpread(_objectSpread({}, queryVariables), {}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bento-core/table",
|
|
3
|
-
"version": "1.0.1-ccdihub.
|
|
3
|
+
"version": "1.0.1-ccdihub.32",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run lint && cross-env-shell rm -rf dist && NODE_ENV=production BABEL_ENV=es babel src --out-dir dist --copy-files",
|
|
@@ -23,15 +23,16 @@ const DownloadButton = ({
|
|
|
23
23
|
|
|
24
24
|
const client = useApolloClient();
|
|
25
25
|
|
|
26
|
-
const downloadFile = 'CCDI Inventory';
|
|
26
|
+
const downloadFile = 'CCDI Inventory ';
|
|
27
27
|
|
|
28
28
|
async function downloadSCSVFile() {
|
|
29
29
|
const {
|
|
30
30
|
query,
|
|
31
31
|
paginationAPIField,
|
|
32
|
+
name,
|
|
32
33
|
} = table;
|
|
33
34
|
|
|
34
|
-
const downloadFileName = downloadFile.concat(
|
|
35
|
+
const downloadFileName = downloadFile.concat(name, ' download');
|
|
35
36
|
|
|
36
37
|
const result = await client.query({
|
|
37
38
|
query,
|