diff --git a/.github/README.md b/.github/README.md index 87ebc32..83f5609 100644 --- a/.github/README.md +++ b/.github/README.md @@ -56,6 +56,7 @@ Thank you to the following projects and individuals for their contributions. Hig - LottePitcher - [opinionated-package-starter](https://github.com/LottePitcher/opinionated-package-starter) - Matthew-Wise - [Matthew-Wise](https://github.com/Matthew-Wise) +- Miguel Guedelha - [Miguel Guedelha](https://github.com/MiguelGuedelha) diff --git a/docs/README_nuget.md b/docs/README_nuget.md index f0b2f5a..a9f9b0f 100644 --- a/docs/README_nuget.md +++ b/docs/README_nuget.md @@ -34,6 +34,7 @@ Thank you to the following projects and individuals for their contributions. Hig - LottePitcher - [opinionated-package-starter](https://github.com/LottePitcher/opinionated-package-starter) - Matthew-Wise - [Matthew-Wise](https://github.com/Matthew-Wise) +- Miguel Guedelha - [Miguel Guedelha](https://github.com/MiguelGuedelha) diff --git a/src/TestSite.13/appsettings.Development.json b/src/TestSite.13/appsettings.Development.json index 3cb2876..a96b80b 100644 --- a/src/TestSite.13/appsettings.Development.json +++ b/src/TestSite.13/appsettings.Development.json @@ -23,6 +23,9 @@ }, "Umbraco": { "CMS": { + "DeliveryApi": { + "Enabled": true + }, "Unattended": { "InstallUnattended": true, "UnattendedUserName": "Administrator", diff --git a/src/jcdcdev.Umbraco.ReadingTime.sln b/src/jcdcdev.Umbraco.ReadingTime.sln index d60c8f7..eea542c 100644 --- a/src/jcdcdev.Umbraco.ReadingTime.sln +++ b/src/jcdcdev.Umbraco.ReadingTime.sln @@ -41,7 +41,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Github", "Github", "{5830A8 ..\.github\dependabot.yml = ..\.github\dependabot.yml EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestSite.10", "TestSite.10\TestSite.10.csproj", "{53BFA9E1-2748-4FEE-B3CB-98172460795D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestSite.13", "TestSite.13\TestSite.13.csproj", "{53BFA9E1-2748-4FEE-B3CB-98172460795D}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "jcdcdev.Umbraco.ReadingTime", "jcdcdev.Umbraco.ReadingTime\jcdcdev.Umbraco.ReadingTime.csproj", "{2060F159-0A7B-4484-A6C2-1995A3EF19B4}" EndProject diff --git a/src/jcdcdev.Umbraco.ReadingTime/Core/PropertyEditors/ReadingTimePropertyValueConverter.cs b/src/jcdcdev.Umbraco.ReadingTime/Core/PropertyEditors/ReadingTimePropertyValueConverter.cs index 13f7813..eefbbfa 100644 --- a/src/jcdcdev.Umbraco.ReadingTime/Core/PropertyEditors/ReadingTimePropertyValueConverter.cs +++ b/src/jcdcdev.Umbraco.ReadingTime/Core/PropertyEditors/ReadingTimePropertyValueConverter.cs @@ -79,7 +79,7 @@ public bool IsConverter(IPublishedPropertyType propertyType) => public bool? IsValue(object? value, PropertyValueLevel level) => level switch { - PropertyValueLevel.Source => value is Guid, + PropertyValueLevel.Source => value is string valueAsString && !string.IsNullOrWhiteSpace(valueAsString), PropertyValueLevel.Inter => value is Guid, PropertyValueLevel.Object => value is ReadingTimeValueModel, _ => throw new NotSupportedException($"Invalid level: {level}.")