diff --git a/client/app/pages/dashboards/components/ShareDashboardDialog.jsx b/client/app/pages/dashboards/components/ShareDashboardDialog.jsx index 838e9e30ea..7d8e6d5939 100644 --- a/client/app/pages/dashboards/components/ShareDashboardDialog.jsx +++ b/client/app/pages/dashboards/components/ShareDashboardDialog.jsx @@ -94,12 +94,12 @@ class ShareDashboardDialog extends React.Component { }; render() { - const { dialog, dashboard } = this.props; - + const { dialog, dashboard, hasOnlySafeQueries } = this.props; + const headerContent = this.constructor.headerContent; return ( - +
- {!this.props.hasOnlySafeQueries && ( + {!hasOnlySafeQueries && ( )} + {dashboard.public_url && ( - - - + <> + + + Custom rule for hiding filter components when sharing links: +
+ You can hide filter components by appending `&hide_filter={"{{"} component_name{"}}"}` to thesharing URL. +
+ Example: http://{"{{"}ip{"}}"}:{"{{"}port{"}}"}/public/dashboards/{"{{"}id{"}}"}?p_country=ghana&p_site=10&hide_filter=country + + } + type="warning" + /> +
+ + + + + )}
@@ -127,4 +145,4 @@ class ShareDashboardDialog extends React.Component { } } -export default wrapDialog(ShareDashboardDialog); +export default wrapDialog(ShareDashboardDialog); \ No newline at end of file