Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the plugin works in the panel edit page but doesn't work in the dashboard page #40

Open
mo802 opened this issue Sep 15, 2021 · 3 comments

Comments

@mo802
Copy link

mo802 commented Sep 15, 2021

Hello,
I have a problem with the switch plugin. I have set the configurations and tested it in the edit panel page and it worked well.
but when I get out to the dashboard page and test there, it doesn't work.
where is the problem ?!!

@mo802
Copy link
Author

mo802 commented Sep 16, 2021

@geeks-r-us
could you give me a help please ?

@orbtst01
Copy link

I'm having the same problem, does anyone have a solution for that ?
The plugin works in the "Edit Panel" page, but does not work in the Dashboard page !

@orbtst01
Copy link

I found a solution for this issue in the below link
grafana/grafana@335234c

In case you're using Grafana V.8, I only had to change two files. /usr/share/grafana/public/app/features/dashboard/components/SubMenu/DashboardLinks.tsx
/usr/share/grafana/public/app/features/dashboard/components/SubMenu/DashboardLinksDashboard.tsx

Replace this line in all places
target={link.targetBlank ? '_blank' : undefined}
With that
target={link.targetBlank ? '_blank' : '_self'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants