Skip to content

Commit cb75629

Browse files
committed
PR feedback updates
1 parent 9fa2302 commit cb75629

File tree

4 files changed

+7
-18
lines changed

4 files changed

+7
-18
lines changed

src/Umbraco.Cms.Integrations.Automation.Zapier/Constants.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,5 @@ public static class EntityType
4242

4343
public const int Form = 2;
4444
}
45-
46-
public static class MediaAliases
47-
{
48-
public const string UmbracoMediaPicker = "Umbraco.MediaPicker";
49-
50-
public const string UmbracoMediaPicker3 = "Umbraco.MediaPicker3";
51-
}
5245
}
5346
}

src/Umbraco.Cms.Integrations.Automation.Zapier/Extensions/ContentExtensions.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#else
1010
using Umbraco.Core.Models;
1111
using Umbraco.Core.Models.PublishedContent;
12+
using Umbraco.Web;
1213
#endif
1314

1415
namespace Umbraco.Cms.Integrations.Automation.Zapier.Extensions
@@ -62,17 +63,13 @@ public static Dictionary<string, string> ToContentDictionary(this IContent conte
6263

6364
private static bool IsMedia(IPublishedProperty contentProperty, out string url)
6465
{
65-
switch(contentProperty.PropertyType.EditorAlias)
66+
switch (contentProperty.PropertyType.EditorAlias)
6667
{
67-
case Constants.MediaAliases.UmbracoMediaPicker:
68+
case Core.Constants.PropertyEditors.Aliases.MediaPicker:
6869
var mediaPickerValue = contentProperty.GetValue() as IPublishedContent;
69-
#if NETCOREAPP
7070
url = mediaPickerValue.Url();
71-
#else
72-
url = mediaPickerValue.Url;
73-
#endif
7471
return true;
75-
case Constants.MediaAliases.UmbracoMediaPicker3:
72+
case Core.Constants.PropertyEditors.Aliases.MediaPicker3:
7673
var mediaPicker3Value = contentProperty.GetValue() as MediaWithCrops;
7774
url = mediaPicker3Value.LocalCrops.Src;
7875
return true;

src/Umbraco.Cms.Integrations.Automation.Zapier/Umbraco.Cms.Integrations.Automation.Zapier.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@
99
<RepositoryUrl>https://github.com/umbraco/Umbraco.Cms.Integrations</RepositoryUrl>
1010
<PackageProjectUrl>https://github.com/umbraco/Umbraco.Cms.Integrations/blob/main/src/Umbraco.Cms.Integrations.Automation.Zapier</PackageProjectUrl>
1111
<Product>Umbraco.Cms.Integrations.Automation.Zapier</Product>
12-
<Version>1.0.4</Version>
12+
<Version>1.1.0</Version>
1313
<PackageTags>Umbraco;Umbraco-Marketplace</PackageTags>
1414
</PropertyGroup>
1515

1616
<ItemGroup Condition="'$(TargetFramework)' == 'net472'">
17-
<PackageReference Include="UmbracoCms.Web" Version="8.5.4" />
18-
<PackageReference Include="UmbracoCms.Core" Version="8.14.1" />
17+
<PackageReference Include="UmbracoCms.Web" Version="8.14.0" />
1918
</ItemGroup>
2019

2120
<ItemGroup Condition="'$(TargetFramework)' == 'net50'">

src/Umbraco.Cms.Integrations.Automation.Zapier/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<info>
44
<package>
55
<name>Umbraco.Cms.Integrations.Automation.Zapier</name>
6-
<version>1.0.4</version>
6+
<version>1.1.0</version>
77
<iconUrl></iconUrl>
88
<licence url="https://opensource.org/licenses/MIT">MIT</licence>
99
<url>https://github.com/umbraco/Umbraco.Cms.Integrations</url>

0 commit comments

Comments
 (0)