-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 easier re enable usercomment #11249
Conversation
|
||
entryEditorPreferences.setShowUserCommentsFields(false); | ||
setupPanel(entry, false); | ||
Button toggleCommentsButton = new Button("Hide user comments"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to use a toggleButton here since there are two possible states for the button: Show or Hide comments.
Button toggleCommentsButton = new Button("Hide user comments"); | ||
toggleCommentsButton.setOnAction(e -> { | ||
if (gridPane.getChildren().contains(fieldEditorForUserDefinedComment.get().getNode())) { | ||
gridPane.getChildren().remove(fieldEditorForUserDefinedComment.get().getNode()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't have to remove the node from the layout, just setVisible(false)
.
Hi @sirine707, what is the status here? I see that the some tests are failing and the PR is still a draft. |
hello @calixtus , I dont have plans to continue working on this PR , thanks for your understanding! |
Fixes #11021
Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)