Skip to content

Commit e355586

Browse files
Reset dialog upon batch registration (#379)
1 parent 5a74c7f commit e355586

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

vaadinfrontend/src/main/java/life/qbic/datamanager/views/projects/project/samples/SampleDetailsComponent.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ private void addEventListeners() {
252252
registerBatchAndSamples(batchRegistrationSource.batchRegistrationContent(),
253253
batchRegistrationSource.sampleRegistrationContent()).onValue(batchId -> {
254254
fireBatchCreatedEvent(batchRegistrationEvent);
255-
batchRegistrationDialog.close();
255+
batchRegistrationDialog.resetAndClose();
256256
displayRegistrationSuccess();
257257
});
258258
});

vaadinfrontend/src/main/java/life/qbic/datamanager/views/projects/project/samples/registration/batch/BatchRegistrationDialog.java

+4
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ public void setSelectedExperiment(Experiment experiment) {
9696
batchInformationLayout.experimentSelect.setValue(experiment);
9797
}
9898

99+
public void resetAndClose() {
100+
registerBatchDialogHandler.resetAndClose();
101+
}
102+
99103
private class RegisterBatchDialogHandler implements Serializable {
100104

101105
@Serial

0 commit comments

Comments
 (0)