@@ -223,6 +223,7 @@ protected CompletionStage<Void> informCaseSymptomsMismatch(CaseDataDto caze, Ext
223223 CommitDiscardWrapperComponent <VerticalLayout > commitDiscardWrapperComponent = new CommitDiscardWrapperComponent <>(content );
224224 commitDiscardWrapperComponent .getCommitButton ().setCaption (I18nProperties .getCaption (Captions .actionContinue ));
225225 commitDiscardWrapperComponent .addCommitListener (() -> ret .complete (null ));
226+ commitDiscardWrapperComponent .addDiscardListener (() -> ret .complete (null ));
226227
227228 VaadinUiUtil .showModalPopupWindow (commitDiscardWrapperComponent , I18nProperties .getCaption (Captions .info ), true );
228229
@@ -816,6 +817,7 @@ protected CompletionStage<Void> informCaseHospitalizationMismatch(CaseDataDto ca
816817 CommitDiscardWrapperComponent <VerticalLayout > commitDiscardWrapperComponent = new CommitDiscardWrapperComponent <>(content );
817818 commitDiscardWrapperComponent .getCommitButton ().setCaption (I18nProperties .getCaption (Captions .actionContinue ));
818819 commitDiscardWrapperComponent .addCommitListener (() -> ret .complete (null ));
820+ commitDiscardWrapperComponent .addDiscardListener (() -> ret .complete (null ));
819821
820822 VaadinUiUtil .showModalPopupWindow (commitDiscardWrapperComponent , I18nProperties .getCaption (Captions .info ), true );
821823
@@ -839,6 +841,7 @@ protected CompletionStage<Void> informCaseExposuresMismatch(CaseDataDto caze, Ex
839841 CommitDiscardWrapperComponent <VerticalLayout > commitDiscardWrapperComponent = new CommitDiscardWrapperComponent <>(content );
840842 commitDiscardWrapperComponent .getCommitButton ().setCaption (I18nProperties .getCaption (Captions .actionContinue ));
841843 commitDiscardWrapperComponent .addCommitListener (() -> ret .complete (null ));
844+ commitDiscardWrapperComponent .addDiscardListener (() -> ret .complete (null ));
842845
843846 VaadinUiUtil .showModalPopupWindow (commitDiscardWrapperComponent , I18nProperties .getCaption (Captions .info ), true );
844847
@@ -862,6 +865,7 @@ protected CompletionStage<Void> informCaseActivitiesAsCaseMismatch(CaseDataDto c
862865 CommitDiscardWrapperComponent <VerticalLayout > commitDiscardWrapperComponent = new CommitDiscardWrapperComponent <>(content );
863866 commitDiscardWrapperComponent .getCommitButton ().setCaption (I18nProperties .getCaption (Captions .actionContinue ));
864867 commitDiscardWrapperComponent .addCommitListener (() -> ret .complete (null ));
868+ commitDiscardWrapperComponent .addDiscardListener (() -> ret .complete (null ));
865869
866870 VaadinUiUtil .showModalPopupWindow (commitDiscardWrapperComponent , I18nProperties .getCaption (Captions .info ), true );
867871
0 commit comments