Revision cc9c04a4
Added by Andreas Kohlbecker over 3 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkingsetPresenter.java | ||
---|---|---|
586 | 586 |
if(event.getWorkingSetType() == TypeDesignationWorkingSetType.SPECIMEN_TYPE_DESIGNATION_WORKINGSET){ |
587 | 587 |
SpecimenTypeDesignationWorkingsetPopupEditor popup = openPopupEditor(SpecimenTypeDesignationWorkingsetPopupEditor.class, event); |
588 | 588 |
popup.setParentEditorActionContext(event.getContext(), event.getTarget()); |
589 |
TypeDesignationWorkingsetEditorIdSet identifierSet; |
|
590 | 589 |
UUID typifiedNameUuid; |
591 | 590 |
|
592 | 591 |
RegistrationDTO registrationDTO = workingset.getRegistrationDTO(event.getRegistrationUuid()).get(); |
... | ... | |
599 | 598 |
typifiedNameUuid = registrationDTO.getNameRef().getUuid(); |
600 | 599 |
} |
601 | 600 |
|
602 |
identifierSet = new TypeDesignationWorkingsetEditorIdSet( |
|
601 |
popup.grantToCurrentUser(EnumSet.of(CRUD.UPDATE, CRUD.DELETE)); |
|
602 |
popup.withDeleteButton(false); |
|
603 |
popup.loadInEditor(new TypeDesignationWorkingsetEditorIdSet( |
|
603 | 604 |
event.getRegistrationUuid(), |
604 |
null, |
|
605 | 605 |
typifiedNameUuid |
606 |
) |
|
606 | 607 |
); |
607 |
popup.grantToCurrentUser(EnumSet.of(CRUD.UPDATE, CRUD.DELETE)); |
|
608 |
popup.withDeleteButton(false); |
|
609 |
popup.loadInEditor(identifierSet); |
|
610 | 608 |
if(event.hasSource()){ |
611 | 609 |
// propagate readonly state from source component to popup |
612 | 610 |
popup.setReadOnly(event.getSource().isReadOnly()); |
Also available in: Unified diff
ref #9290 cleaning up