Skip to content

Commit

Permalink
Misc adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Feb 16, 2023
1 parent 63f59d4 commit 55de767
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using System.Diagnostics.CodeAnalysis;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Skybrud.Essentials.Json.Newtonsoft.Extensions;
using Umbraco.Cms.Core.Models.PublishedContent;
Expand Down Expand Up @@ -40,6 +41,7 @@ public class GridControlMediaValue : GridControlValueBase<JObject> {
/// Gets whether the <see cref="AlternativeText"/> property has a value.
/// </summary>
[JsonIgnore]
[MemberNotNullWhen(true, nameof(AlternativeText))]
public bool HasAlternativeText => !string.IsNullOrWhiteSpace(AlternativeText);

/// <summary>
Expand All @@ -51,6 +53,8 @@ public class GridControlMediaValue : GridControlValueBase<JObject> {
/// <summary>
/// Gets whether the <see cref="Caption"/> property has a value.
/// </summary>
[JsonIgnore]
[MemberNotNullWhen(true, nameof(Caption))]
public bool HasCaption => !string.IsNullOrWhiteSpace(Caption);

/// <summary>
Expand Down

0 comments on commit 55de767

Please sign in to comment.