mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Panel: Embed URL is now correctly generated for a panel in the home dashboard (#44706)
* user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * test tidyup * Add comment for route Co-authored-by: kay delaney <kay@grafana.com> Co-authored-by: Alexandra Vargas <alexa1866@gmail.com> Co-authored-by: joshhunt <josh@trtr.co> Co-authored-by: Muaaz Saleem <muaazsaleem@Muaazs-MacBook-Pro.local>
This commit is contained in:
@@ -51,11 +51,11 @@ export class ShareLink extends PureComponent<Props, State> {
|
||||
}
|
||||
|
||||
buildUrl = async () => {
|
||||
const { panel } = this.props;
|
||||
const { panel, dashboard } = this.props;
|
||||
const { useCurrentTimeRange, useShortUrl, selectedTheme } = this.state;
|
||||
|
||||
const shareUrl = await buildShareUrl(useCurrentTimeRange, selectedTheme, panel, useShortUrl);
|
||||
const imageUrl = buildImageUrl(useCurrentTimeRange, selectedTheme, panel);
|
||||
const imageUrl = buildImageUrl(useCurrentTimeRange, dashboard.uid, selectedTheme, panel);
|
||||
|
||||
this.setState({ shareUrl, imageUrl });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user