You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2024/09/16 15:55:20 UTC

(causeway-app-petclinic) tag demo-3a created (now 591701d)

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a change to tag demo-3a
in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git


      at 591701d  (commit)
This tag includes the following new commits:

     new 591701d  disables cancelVisit if there are none; defaults if there is only one.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(causeway-app-petclinic) 01/01: disables cancelVisit if there are none; defaults if there is only one.

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to tag demo-3a
in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git

commit 591701d46bd49704296f262405434317507df367
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Jun 27 17:12:49 2024 +0100

    disables cancelVisit if there are none; defaults if there is only one.
---
 .../visit/contributions/PetOwner_cancelVisit.java  | 48 ++++------------------
 1 file changed, 9 insertions(+), 39 deletions(-)

diff --git a/module-visit/src/main/java/domainapp/modules/visit/contributions/PetOwner_cancelVisit.java b/module-visit/src/main/java/domainapp/modules/visit/contributions/PetOwner_cancelVisit.java
index 72f3325..19292ab 100644
--- a/module-visit/src/main/java/domainapp/modules/visit/contributions/PetOwner_cancelVisit.java
+++ b/module-visit/src/main/java/domainapp/modules/visit/contributions/PetOwner_cancelVisit.java
@@ -37,45 +37,15 @@ public class PetOwner_cancelVisit {
     @Inject ClockService clockService;
 
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-//    @MemberSupport
-//    public Visit default0Act() {
-//        List<Visit> visits = choices0Act();
-//        return visits.size() == 1 ? visits.iterator().next() : null;
-//    }
-//    @MemberSupport
-//    public String disableAct() {
-//        return choices0Act().isEmpty() ? "No visits to cancel" : null;
-//    }
+    @MemberSupport
+    public Visit default0Act() {
+        List<Visit> visits = choices0Act();
+        return visits.size() == 1 ? visits.iterator().next() : null;
+    }
+    @MemberSupport
+    public String disableAct() {
+        return choices0Act().isEmpty() ? "No visits to cancel" : null;
+    }
 
 
 }