-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
show and hide actionmenu elements depending selection and copied elem… #962
Conversation
@ionlizarazu you need to sign the Plone Contributor Agreement in order to merge this pull request. Learn about the Plone Contributor Agreement: http://docs.plone.org/develop/coredev/docs/contributors_agreement_explained.html |
@erral thanks for creating this Pull Request and help improve Plone! To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass. Whenever you feel that the pull request is ready to be tested, either start all jenkins jobs pull requests by yourself, or simply add a comment in this pull request stating:
With this simple comment all the jobs will be started automatically. Happy hacking! |
@erral thanks for creating this Pull Request and help improve Plone! To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass. Whenever you feel that the pull request is ready to be tested, either start all jenkins jobs pull requests by yourself, or simply add a comment in this pull request stating:
With this simple comment all the jobs will be started automatically. Happy hacking! |
@jenkins-plone-org please run jobs |
I am not sure if hiding is the best solution, or if it is better to grey out/ disable the buttons. Opinions? |
Yeah, it should be something that does not allow to make any action when clicking on them, hiding is one option. |
I think disabling would be less disturbing instead of hiding/showing depending on the state. It probably also makes it harder to orientate in the UI when buttons disappear on different places. There are already buttons disabled (should be at least), including when pasting and nothing was selected:
Paste button disable/undisable:
ButtonGroup: https://github.com/plone/mockup/blob/65b92f2178df68013ccccf7bdd4354add870422d/mockup/js/ui/views/buttongroup.js ButtonView: https://github.com/plone/mockup/blob/65b92f2178df68013ccccf7bdd4354add870422d/mockup/js/ui/views/button.js |
This was a regression. See my fixes in #996 |
…ents
Fixes #961
@ionlizarazu