From 8bb36de10ff0dd3682364e84b91f8908fb97ff36 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Sun, 31 Dec 2023 09:53:10 +0100 Subject: [PATCH] Add UIHint for FlowJoin activity The FlowJoin activity's join mode now includes a UIHint, which indicates its input is a dropdown. This improves user interface interaction by allowing the selection of join mode from a dropdown menu rather than manual input. --- .../Activities/Flowchart/Activities/FlowJoin.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/Elsa.Workflows.Core/Activities/Flowchart/Activities/FlowJoin.cs b/src/modules/Elsa.Workflows.Core/Activities/Flowchart/Activities/FlowJoin.cs index 29a2c5647..6eca25f4d 100644 --- a/src/modules/Elsa.Workflows.Core/Activities/Flowchart/Activities/FlowJoin.cs +++ b/src/modules/Elsa.Workflows.Core/Activities/Flowchart/Activities/FlowJoin.cs @@ -5,6 +5,7 @@ using Elsa.Workflows.Activities.Flowchart.Extensions; using Elsa.Workflows.Activities.Flowchart.Models; using Elsa.Workflows.Attributes; using Elsa.Workflows.Models; +using Elsa.Workflows.UIHints; using JetBrains.Annotations; namespace Elsa.Workflows.Activities.Flowchart.Activities; @@ -26,7 +27,8 @@ public class FlowJoin : Activity, IJoinNode /// [Input( Description = "The join mode determines whether this activity should continue as soon as one inbound path comes in (Wait Any), or once all inbound paths have executed (Wait All).", - DefaultValue = FlowJoinMode.WaitAny + DefaultValue = FlowJoinMode.WaitAny, + UIHint = InputUIHints.DropDown )] public Input Mode { get; set; } = new(FlowJoinMode.WaitAny);