|
1 |
| -//#if NETCOREAPP |
2 |
| -//using Umbraco.Cms.Core.IO; |
3 |
| -//using Umbraco.Cms.Core.PropertyEditors; |
4 |
| -//#else |
5 |
| -//using Umbraco.Core.Logging; |
6 |
| -//using Umbraco.Core.PropertyEditors; |
7 |
| -//#endif |
8 |
| - |
9 |
| -//namespace Umbraco.Cms.Integrations.Commerce.Shopify.Core.Editors |
10 |
| -//{ |
11 |
| -// [DataEditor( |
12 |
| -// alias: "Umbraco.Cms.Integrations.Commerce.Shopify.Core.ProductPicker", |
13 |
| -// name: "Shopify Product Picker", |
14 |
| -// view: "~/App_Plugins/UmbracoCms.Integrations/Commerce/Shopify/views/productPicker.html", |
15 |
| -// Group = "Pickers", |
16 |
| -// Icon = "icon-shopping-basket-alt")] |
17 |
| -// public class ShopifyProductPickerPropertyEditor: DataEditor |
18 |
| -// { |
19 |
| -//#if NETCOREAPP |
20 |
| -// private IIOHelper _ioHelper; |
21 |
| - |
22 |
| -// public ShopifyProductPickerPropertyEditor(IDataValueEditorFactory dataValueEditorFactory, IIOHelper ioHelper) : base(dataValueEditorFactory) |
23 |
| -// { |
24 |
| -// _ioHelper = ioHelper; |
25 |
| -// } |
26 |
| - |
27 |
| -// protected override IConfigurationEditor CreateConfigurationEditor() |
28 |
| -// { |
29 |
| -// return new ShopifyProductPickerConfigurationEditor(_ioHelper); |
30 |
| -// } |
31 |
| -//#else |
32 |
| -// public ShopifyProductPickerPropertyEditor(ILogger logger) : base(logger) |
33 |
| -// { |
34 |
| -// } |
35 |
| - |
36 |
| -// protected override IConfigurationEditor CreateConfigurationEditor() |
37 |
| -// { |
38 |
| -// return new ShopifyProductPickerConfigurationEditor(); |
39 |
| -// } |
40 |
| -//#endif |
41 |
| -// } |
42 |
| -//} |
| 1 | +using Umbraco.Cms.Core.PropertyEditors; |
| 2 | + |
| 3 | +namespace Umbraco.Cms.Integrations.Commerce.Shopify.Core.Editors |
| 4 | +{ |
| 5 | + [DataEditor( |
| 6 | + "Umbraco.Cms.Integrations.Commerce.Shopify.Core.ProductPicker", |
| 7 | + ValueEditorIsReusable = true)] |
| 8 | + public class ShopifyProductPickerPropertyEditor : DataEditor |
| 9 | + { |
| 10 | + public ShopifyProductPickerPropertyEditor(IDataValueEditorFactory dataValueEditorFactory) |
| 11 | + : base(dataValueEditorFactory) |
| 12 | + { |
| 13 | + } |
| 14 | + } |
| 15 | +} |
0 commit comments