couple TODOs

This commit is contained in:
Shannon
2020-07-20 16:39:00 +10:00
parent c8c9cfa7f2
commit 51118699df
2 changed files with 14 additions and 2 deletions

View File

@@ -18,8 +18,20 @@ namespace Umbraco.Web.PropertyEditors.Validation
public IList<ComplexEditorPropertyTypeValidationResult> ValidationResults { get; } = new List<ComplexEditorPropertyTypeValidationResult>();
// TODO: We don't use this anywhere, though it's nice for debugging
/// <summary>
/// The element type alias of the validation result
/// </summary>
/// <remarks>
/// This is useful for debugging purposes but it's not actively used in the angular app
/// </remarks>
public string ElementTypeAlias { get; }
/// <summary>
/// The Block ID of the validation result
/// </summary>
/// <remarks>
/// This is the GUID id of the content item based on the element type
/// </remarks>
public Guid BlockId { get; }
}
}

View File

@@ -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 }
};