Ensure incompatible visualization entries are still shown as footer icons when they are selected by sgiehl · Pull Request #14507 · matomo-org/matomo · GitHub
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

Ensure incompatible visualization entries are still shown as footer icons when they are selected #14507

Merged
merged 1 commit into from
Jun 7, 2019

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Jun 2, 2019

When viewing for example a insights report for a unsupported date/period combination, the report currently won't show any visualization icons to switch to another one.

That is caused by the fact that the currently enabled visualization isn't available (canDisplayViewDataTable returns false). With the current visualization absent the view won't show any visualization icons (caused by https://github.com/matomo-org/matomo/blob/3.x-dev/plugins/CoreHome/templates/_dataTableActions.twig#L9-L34 and https://github.com/matomo-org/matomo/blob/3.x-dev/plugins/CoreHome/templates/_dataTableActions.twig#L54)

Imho it's makes most sense to add the current visualization to the icons even if wouldn't be present anymore. That way it will be shown as active, and it's possible again to switch to another one.

fixes #14071

@sgiehl sgiehl added c: Design / UI For issues that impact Matomo's user interface or the design overall. Needs Review PRs that need a code review labels Jun 2, 2019
@sgiehl sgiehl added this to the 3.10.0 milestone Jun 7, 2019
@sgiehl sgiehl merged commit 31bcfbe into 3.x-dev Jun 7, 2019
@sgiehl sgiehl deleted the footericon branch June 7, 2019 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Design / UI For issues that impact Matomo's user interface or the design overall. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not possible to switch back to simple table from the Insights visualization
2 participants