File tree Expand file tree Collapse file tree
sormas-ui/src/main/java/de/symeda/sormas/ui/samples/components Expand file tree Collapse file tree Original file line number Diff line number Diff 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 () {
You can’t perform that action at this time.
0 commit comments