Skip to content

Commit 9e17517

Browse files
committed
Rename view model and version update
1 parent bc40b7d commit 9e17517

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Umbraco.Cms.Integrations.Commerce.Shopify/Editors/ShopifyProductPickerValueConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public override object ConvertIntermediateToObject(IPublishedElement owner, IPub
6060
Id = p.Id,
6161
Title = p.Title,
6262
Body = p.Body,
63-
ProductImage = p.Image != null ? new ProductImage { Src = p.Image.Src, Alt = p.Image.Alt } : null,
63+
ProductImage = p.Image != null ? new ProductImageViewModel { Src = p.Image.Src, Alt = p.Image.Alt } : null,
6464
Tags = p.Tags,
6565
ProductType = p.ProductType,
6666
PublishedScope = p.PublishedScope,

src/Umbraco.Cms.Integrations.Commerce.Shopify/Models/ViewModels/ProductImage.cs renamed to src/Umbraco.Cms.Integrations.Commerce.Shopify/Models/ViewModels/ProductImageViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Umbraco.Cms.Integrations.Commerce.Shopify.Models.ViewModels
22
{
3-
public class ProductImage
3+
public class ProductImageViewModel
44
{
55
public string Src { get; set; }
66
public string Alt { get; set; }

src/Umbraco.Cms.Integrations.Commerce.Shopify/Models/ViewModels/ProductViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class ProductViewModel
1010
public string Body { get; set; }
1111

1212
public string Image => ProductImage.Src;
13-
public ProductImage ProductImage { get; set; }
13+
public ProductImageViewModel ProductImage { get; set; }
1414
public string ProductType { get; set; }
1515
public string Tags { get; set; }
1616
public string Status { get; set; }

src/Umbraco.Cms.Integrations.Commerce.Shopify/Umbraco.Cms.Integrations.Commerce.Shopify.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PackageIconUrl></PackageIconUrl>
1111
<PackageProjectUrl>https://github.com/umbraco/Umbraco.Cms.Integrations/blob/main/src/Umbraco.Cms.Integrations.Commerce.Shopify</PackageProjectUrl>
1212
<RepositoryUrl>https://github.com/umbraco/Umbraco.Cms.Integrations</RepositoryUrl>
13-
<Version>1.2.1</Version>
13+
<Version>1.2.2</Version>
1414
<Authors>Umbraco HQ</Authors>
1515
<Company>Umbraco</Company>
1616
<PackageTags>Umbraco;Umbraco-Marketplace</PackageTags>

0 commit comments

Comments
 (0)