Add missing ForceLeft and ForceRight (#13190)

This commit is contained in:
Mole
2022-10-13 08:24:50 +02:00
committed by GitHub
parent 29ae87ec61
commit 9f6d5e9543
2 changed files with 8 additions and 0 deletions

View File

@@ -25,6 +25,12 @@ public class BlockGridLayoutItem : IBlockLayoutItem
[JsonProperty("rowSpan", NullValueHandling = NullValueHandling.Ignore)]
public int? RowSpan { get; set; }
[JsonProperty("forceLeft")]
public bool ForceLeft { get; set; }
[JsonProperty("forceRight")]
public bool ForceRight { get; set; }
[JsonProperty("areas", NullValueHandling = NullValueHandling.Ignore)]
public BlockGridLayoutAreaItem[] Areas { get; set; } = Array.Empty<BlockGridLayoutAreaItem>();
}

View File

@@ -49,6 +49,8 @@ namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters
blockItem.RowSpan = layoutItem.RowSpan!.Value;
blockItem.ColumnSpan = layoutItem.ColumnSpan!.Value;
blockItem.ForceLeft = layoutItem.ForceLeft;
blockItem.ForceRight = layoutItem.ForceRight;
blockItem.AreaGridColumns = blockConfig.AreaGridColumns;
blockItem.GridColumns = configuration.GridColumns;
blockItem.Areas = layoutItem.Areas.Select(area =>