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

Fix add buttons #109

Merged
merged 3 commits into from
Mar 15, 2021
Merged

Fix add buttons #109

merged 3 commits into from
Mar 15, 2021

Conversation

MaximMoinat
Copy link
Collaborator

Fixes bug where add buttons not being enabled if code unapproved.

And the unit/value target type selections are now moved to the left of the button panels.

@MaximMoinat MaximMoinat requested a review from blootsvoets March 15, 2021 15:25
Comment on lines +449 to +450
replaceButton.setEnabled(true);
addButtons.forEach(x -> x.setEnabled(true));
Copy link
Collaborator

Choose a reason for hiding this comment

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

I notice that the buttons do not seem to get disabled anywhere. Not sure if that's intentional.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They are disabled here:

// Don't enable the buttons if no row selected or status is approved
if (viewRow == -1 || codeMapping.getMappingStatus() == MappingStatus.APPROVED) {
addButtons.forEach(x -> x.setEnabled(false));
replaceButton.setEnabled(false);

@MaximMoinat MaximMoinat merged commit 13d589f into OHDSI:develop Mar 15, 2021
@MaximMoinat MaximMoinat deleted the add-buttons branch August 15, 2022 13:41
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.

2 participants