Hide the 'Edit dashboard' button on standalone
See original GitHub issueIs your feature request related to a problem? Please describe.
On the project that I’m working on, when we want to display a dashboard we always use the standalone mode, since it removes the navbar from superset that we don’t use while analyzing the data.
We are left with the header and the charts. The former has the title, published status, favorite star, the ‘Edit dashboard’ button and its dropdown.
Currently to hide some elements such as the favorite star we add some css to the dashboard (display: none
).
However if we do the same to the ‘Edit Dashboard’ button, every time we need to edit the dashboard we need to comment the css from the button, edit the dashboard and then uncomment back.
Describe the solution you’d like If the standalone flag was on the url, the ‘Edit Dashboard’ wouldn’t be displayed/rendered.
Describe alternatives you’ve considered Besides the ‘Edit Dashboard’ button I also thought on not rending the other elements, leaving just the dropdown. Don’t know if this is to much though.
I checked the react code and the is no standalone
prop on the component rending these elements (‘Edit Dashboard’ button and so on).
Additional context 😶
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top GitHub Comments
I already associated between the 2 Basically what you’re asking is just another filter type in the dashboard filter component
I’ll let you know when you’re specific feature can be implemented as part of that SIP
Issue-Label Bot is automatically applying the label
#enhancement
to this issue, with a confidence of 0.92. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.