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

Make sure to create a dropdown menu when there are more than 5 entries in a sub-menu #10751

Merged
merged 5 commits into from Oct 30, 2016

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Oct 17, 2016

When there are more than 5 entries of the same type such as goals or dashboards, we create a dropdown menu and group them together. There used to be an API to do this in Piwik 2 but we have removed the reporting menu API so the API to do this no longer existed. This PR brings this feature back without the developer having to do anything. It now works just automatically.

@tsteur tsteur added the Needs Review PRs that need a code review label Oct 17, 2016
@tsteur tsteur added this to the 3.0.0-b2 milestone Oct 17, 2016
@@ -134,6 +134,14 @@
}
});

if ('undefined' !== typeof $scope.placeholder && $scope.placeholder !== null) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a bit off topic sorry. It makes sure to show correct placeholder when changing the value of the placeholder attribute

@tsteur tsteur merged commit 8bec1fa into 3.x-dev Oct 30, 2016
@tsteur tsteur deleted the menuselect branch October 30, 2016 20:07
@mattab mattab changed the title Make sure to create a dropdown menu when there are more than 5 entries Make sure to create a dropdown menu when there are more than 5 entries in a sub-menu Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant