// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ========================================================================== using System.ComponentModel.DataAnnotations; using Squidex.Domain.Apps.Core.HandleRules; using Squidex.Domain.Apps.Core.Rules; using Squidex.Infrastructure.Validation; namespace Squidex.Extensions.Actions.Comment { [RuleAction( Title = "Comment", IconImage = "", IconColor = "#3389ff", Display = "Create comment", Description = "Create a comment for a content event.")] public sealed record CommentAction : RuleAction { [LocalizedRequired] [Display(Name = "Text", Description = "The comment text.")] [Editor(RuleFieldEditor.TextArea)] [Formattable] public string Text { get; set; } [Display(Name = "Client", Description = "An optional client name.")] [Editor(RuleFieldEditor.Text)] public string Client { get; set; } } }