This is an automated email from the ASF dual-hosted git repository. danhaywood pushed a commit to branch v2 in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git
commit 6384c8668effeccf5f3821a0aef5d16667c6c16d Author: Dan Haywood <[email protected]> AuthorDate: Sun May 26 10:17:35 2024 +0100 associates 'delete' action with 'identity' fieldset --- .../src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java | 2 -- .../java/domainapp/modules/petowner/dom/petowner/PetOwner.layout.xml | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java b/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java index 9fef62b..c822ca5 100644 --- a/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java +++ b/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java @@ -231,8 +231,6 @@ public class PetOwner implements Comparable<PetOwner>, CalendarEventable { @Action(semantics = NON_IDEMPOTENT_ARE_YOU_SURE) @ActionLayout( - fieldSetId = LayoutConstants.FieldSetId.IDENTITY, - position = ActionLayout.Position.PANEL, describedAs = "Deletes this object from the persistent datastore") public void delete() { final String title = titleService.titleOf(this); diff --git a/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.layout.xml b/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.layout.xml index 4a0db96..72ad53e 100644 --- a/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.layout.xml +++ b/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.layout.xml @@ -18,6 +18,7 @@ <bs3:row> <bs3:col span="12"> <cpt:fieldSet name="Identity" id="identity"> + <cpt:action id="delete" position="PANEL"/> <cpt:property id="name"> <cpt:action id="updateName"/> </cpt:property>
