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 easier re enable usercomment #11249

Closed
wants to merge 4 commits into from

Conversation

sirine707
Copy link

@sirine707 sirine707 commented Apr 25, 2024

Fixes #11021

Mandatory checks

  • Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.


entryEditorPreferences.setShowUserCommentsFields(false);
setupPanel(entry, false);
Button toggleCommentsButton = new Button("Hide user comments");
Copy link
Member

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());
Copy link
Member

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).

@calixtus
Copy link
Member

Hi @sirine707, what is the status here? I see that the some tests are failing and the PR is still a draft.
Are you planning to continue to work on this PR or do you want us to take a look on the remaining issues?

@sirine707
Copy link
Author

hello @calixtus , I dont have plans to continue working on this PR , thanks for your understanding!

@sirine707 sirine707 closed this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make it easier to re-enable user comments
3 participants