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

When reporting menu changes is supposed to be updated, also update the list of widgets in the dashboard #12265

Open
tsteur opened this issue Nov 10, 2017 · 0 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@tsteur
Copy link
Member

tsteur commented Nov 10, 2017

Eg when adding an entity we emit an event like $rootScope.$emit('updateReportingMenu');. The menu then reloads itself and shows possible new menu items. Imagine you add a goal via Ajax, this way the newly created goal will be directly shown in the menu.

The same event could be used to clear the existing list of widgets in widgetsHelper.getAvailableWidgets and the widget menu in the dashboard. Goal would be, that when this event is triggered, it fetches a list of all available widgets again, and re-renders the dashboard widget.

The event name is not ideal, should be more like onEntityChange or something. We could rename the event in Piwik 4 to not break anything.

@tsteur tsteur added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Nov 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants