mirror of
https://github.com/apache/superset.git
synced 2026-04-28 04:25:07 +00:00
[dashboard] add link to export CSV from dashboard (#3280)
* [dashboard] add link to export CSV from dashboard fixes #1304 * Fix tests
This commit is contained in:
committed by
GitHub
parent
6841697917
commit
9c6248f3ba
@@ -2,6 +2,8 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import { getExploreUrl } from '../../explore/exploreUtils';
|
||||
|
||||
const propTypes = {
|
||||
slice: PropTypes.object.isRequired,
|
||||
removeSlice: PropTypes.func.isRequired,
|
||||
@@ -40,7 +42,10 @@ function SliceCell({ expandedSlices, removeSlice, slice }) {
|
||||
>
|
||||
<i className="fa fa-pencil" />
|
||||
</a>
|
||||
<a href={slice.slice_url} title="Explore chart" data-toggle="tooltip">
|
||||
<a href={getExploreUrl(slice.form_data, 'csv')} title="Export CSV" data-toggle="tooltip">
|
||||
<i className="fa fa-table" />
|
||||
</a>
|
||||
<a href={getExploreUrl(slice.form_data)} title="Explore chart" data-toggle="tooltip">
|
||||
<i className="fa fa-share" />
|
||||
</a>
|
||||
<a
|
||||
|
||||
Reference in New Issue
Block a user