geeks-r-us / mqtt-panel

Simple Grafana panel that allows to communicate with a mqtt server
Apache License 2.0
54 stars 11 forks source link

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

Open mo802 opened 3 years ago

mo802 commented 3 years ago

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 commented 3 years ago

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

orbtst01 commented 2 years ago

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 commented 2 years ago

I found a solution for this issue in the below link https://github.com/grafana/grafana/pull/24772/commits/335234c661b596ebd4eecfc878b683e18150e9fe

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'}