Skip to content

Commit

Permalink
[dashboard] add link to export CSV from dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Aug 15, 2017
1 parent 6841697 commit 31391f8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 31391f8

Please sign in to comment.