From 51118699df07216d9062191a03d2373433facee1 Mon Sep 17 00:00:00 2001 From: Shannon Date: Mon, 20 Jul 2020 16:39:00 +1000 Subject: [PATCH] couple TODOs --- .../ComplexEditorElementTypeValidationResult.cs | 14 +++++++++++++- .../Validation/ValidationResultConverter.cs | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/PropertyEditors/Validation/ComplexEditorElementTypeValidationResult.cs b/src/Umbraco.Web/PropertyEditors/Validation/ComplexEditorElementTypeValidationResult.cs index 132818ce59..17a1433db5 100644 --- a/src/Umbraco.Web/PropertyEditors/Validation/ComplexEditorElementTypeValidationResult.cs +++ b/src/Umbraco.Web/PropertyEditors/Validation/ComplexEditorElementTypeValidationResult.cs @@ -18,8 +18,20 @@ namespace Umbraco.Web.PropertyEditors.Validation public IList ValidationResults { get; } = new List(); - // TODO: We don't use this anywhere, though it's nice for debugging + /// + /// The element type alias of the validation result + /// + /// + /// This is useful for debugging purposes but it's not actively used in the angular app + /// public string ElementTypeAlias { get; } + + /// + /// The Block ID of the validation result + /// + /// + /// This is the GUID id of the content item based on the element type + /// public Guid BlockId { get; } } } diff --git a/src/Umbraco.Web/PropertyEditors/Validation/ValidationResultConverter.cs b/src/Umbraco.Web/PropertyEditors/Validation/ValidationResultConverter.cs index c527ce9766..85f2c5f81e 100644 --- a/src/Umbraco.Web/PropertyEditors/Validation/ValidationResultConverter.cs +++ b/src/Umbraco.Web/PropertyEditors/Validation/ValidationResultConverter.cs @@ -71,7 +71,7 @@ namespace Umbraco.Web.PropertyEditors.Validation { { "$id", elementTypeValidationResult.BlockId }, - // TODO: We don't use this anywhere, though it's nice for debugging + // We don't use this anywhere, though it's nice for debugging { "$elementTypeAlias", elementTypeValidationResult.ElementTypeAlias } };