Skip to content

Fix add buttons#109

Merged
MaximMoinat merged 3 commits intoOHDSI:developfrom
EHDEN:add-buttons
Mar 15, 2021
Merged

Fix add buttons#109
MaximMoinat merged 3 commits intoOHDSI:developfrom
EHDEN:add-buttons

Conversation

@MaximMoinat
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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