Skip to content

Commit 8efbf96

Browse files
Merge pull request #13925 from SORMAS-Foundation/bugfix-13559-checkbox-4-fold-increase-in-antibody-titers-in-create-a-new-test-is-not-writable
Fixed the fourfold ctCq component visibility for IGM_SERUM_ANTIBODY &…
2 parents cc54a35 + 164053d commit 8efbf96

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

sormas-ui/src/main/java/de/symeda/sormas/ui/samples/components/FourFoldCtCqComponent.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,17 @@ private void wireEvents() {
115115
}
116116

117117
private void updateFourFoldIncrease(PathogenTestType testType) {
118-
if (currentDisease == Disease.DENGUE && testType == PathogenTestType.IGG_SERUM_ANTIBODY) {
119-
fourFoldIncrease.setCaption(I18nProperties.getCaption(Captions.PathogenTest_fourFoldIncreaseAntibodyTiter_DENGUE));
118+
if (testType == PathogenTestType.IGM_SERUM_ANTIBODY || testType == PathogenTestType.IGG_SERUM_ANTIBODY) {
120119
fourFoldIncrease.setVisible(true);
121120
fourFoldIncrease.setEnabled(true);
122-
} else if (testType == PathogenTestType.IGM_SERUM_ANTIBODY || testType == PathogenTestType.IGG_SERUM_ANTIBODY) {
123-
fourFoldIncrease.setCaption(
124-
I18nProperties.getPrefixCaption(PathogenTestDto.I18N_PREFIX, PathogenTestDto.FOUR_FOLD_INCREASE_ANTIBODY_TITER));
125-
fourFoldIncrease.setVisible(true);
126-
fourFoldIncrease.setEnabled(caseSampleCount >= 2);
127121
} else {
128-
fourFoldIncrease.setCaption(
129-
I18nProperties.getPrefixCaption(PathogenTestDto.I18N_PREFIX, PathogenTestDto.FOUR_FOLD_INCREASE_ANTIBODY_TITER));
130122
fourFoldIncrease.setVisible(false);
131123
fourFoldIncrease.setEnabled(false);
132124
}
125+
fourFoldIncrease.setCaption(
126+
currentDisease == Disease.DENGUE
127+
? I18nProperties.getCaption(Captions.PathogenTest_fourFoldIncreaseAntibodyTiter_DENGUE)
128+
: I18nProperties.getPrefixCaption(PathogenTestDto.I18N_PREFIX, PathogenTestDto.FOUR_FOLD_INCREASE_ANTIBODY_TITER));
133129
}
134130

135131
private void syncSelfVisibility() {

0 commit comments

Comments
 (0)