From 3103c4fc6be7935b17fc0b85657584159d553708 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Fri, 18 Jul 2025 07:34:04 +0000 Subject: [PATCH] Refactor EntitySummaryButton to use function props instead of events Replace @Emit decorator with function prop pattern for better parent control over edit behavior. EntitySummaryButton now accepts onEditRequested function prop that parent components can use to handle edit requests with custom validation logic. Updated GiftDetailsStep to use new function prop interface with proper parameter handling. --- src/components/EntitySummaryButton.vue | 35 +++++++++++++------------- src/components/GiftDetailsStep.vue | 16 +++++++++--- 2 files changed, 30 insertions(+), 21 deletions(-) diff --git a/src/components/EntitySummaryButton.vue b/src/components/EntitySummaryButton.vue index 5f2d6753..50f25078 100644 --- a/src/components/EntitySummaryButton.vue +++ b/src/components/EntitySummaryButton.vue @@ -2,9 +2,9 @@ * Extracted from GiftedDialog.vue to handle entity summary display in the gift * details step with edit functionality. * * Features: * - Shows entity avatar (person or project) * - Displays entity name and role label * - Handles editable -vs locked states * - Emits edit events when clicked and editable * - Supports -both person and project entity types * - Template streamlined with computed CSS -properties * * @author Matthew Raymer */ +vs locked states * - Function props for parent control over edit behavior * - +Supports both person and project entity types * - Template streamlined with +computed CSS properties * * @author Matthew Raymer */