Revision 0e072f9c
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/StartRegistrationPresenter.java | ||
---|---|---|
138 | 138 |
@EventListener(condition = "#event.type == T(eu.etaxonomy.cdm.vaadin.event.AbstractEditorAction.Action).ADD") |
139 | 139 |
public void onRegistrationEditorActionAdd(RegistrationEditorAction event) { |
140 | 140 |
|
141 |
if(getView().getContinueButton().equals(event.getSourceComponent())){
|
|
141 |
if(getView().getContinueButton() != event.getSourceComponent()){
|
|
142 | 142 |
return; |
143 | 143 |
} |
144 | 144 |
Integer referenceId = null; |
... | ... | |
155 | 155 |
getView().getContinueButton().setEnabled(false); |
156 | 156 |
} |
157 | 157 |
registrationInProgress = true; |
158 |
eventBus.publishEvent(new NavigationEvent(RegistrationWorkflowViewBean.NAME, "new", Integer.toString(referenceId)));
|
|
158 |
eventBus.publishEvent(new NavigationEvent(RegistrationWorkflowViewBean.NAME, Integer.toString(referenceId))); |
|
159 | 159 |
|
160 | 160 |
} |
161 | 161 |
|
Also available in: Unified diff
ref #6169 Button row to create new registrations in a registration working set