Skip to content

Commit

Permalink
Set default syntax and UI hint for Predicate input
Browse files Browse the repository at this point in the history
Added `DefaultSyntax` and `UIHint` properties to the Predicate input field in the MessageReceived activity. This change ensures the input field is configured for JavaScript syntax and provides an expression editor for better user experience.
  • Loading branch information
sfmskywalker committed Nov 23, 2024
1 parent eecebb7 commit 95a2a33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/Elsa.Kafka/Activities/MessageReceived.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public MessageReceived(Input<string> consumerDefinitionId, [CallerFilePath] stri

[Input(
Description = "Optional. A predicate to filter messages.",
AutoEvaluate = false
AutoEvaluate = false,
DefaultSyntax = "JavaScript",
UIHint = InputUIHints.ExpressionEditor
)]
public Input<bool> Predicate { get; set; } = default!;

Expand Down

0 comments on commit 95a2a33

Please sign in to comment.