You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/03/04 19:41:32 UTC
[GitHub] [incubator-superset] kristw commented on a change in pull request
#6973: add chart export png
kristw commented on a change in pull request #6973: add chart export png
URL: https://github.com/apache/incubator-superset/pull/6973#discussion_r262212705
##########
File path: superset/assets/src/explore/components/ExploreActionButtons.jsx
##########
@@ -24,23 +24,25 @@ import { t } from '@superset-ui/translation';
import URLShortLinkButton from '../../components/URLShortLinkButton';
import EmbedCodeButton from './EmbedCodeButton';
import DisplayQueryButton from './DisplayQueryButton';
-import { exportChart, getExploreLongUrl } from '../exploreUtils';
+import { exportChart, getExploreLongUrl, exportChartPNG} from '../exploreUtils';
const propTypes = {
actions: PropTypes.object.isRequired,
canDownload: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]).isRequired,
chartStatus: PropTypes.string,
latestQueryFormData: PropTypes.object,
queryResponse: PropTypes.object,
+ slice: propTypes.slice
Review comment:
This is referring to itself.
Please check `prop-types` reference on how to define a proper prop type.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org