Skip to content

Commit b696985

Browse files
committed
Fixed build errors and created link to server-side comoponent of property editor.
1 parent ac97d2f commit b696985

File tree

3 files changed

+18
-45
lines changed

3 files changed

+18
-45
lines changed

src/Umbraco.Cms.Integrations.Commerce.Shopify/Client/src/modal/shopify-products-modal.element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ export default class ShopifyProductsModalElement extends UmbModalBaseElement<Sho
5858
const { data } = await this.#shopifyContext.getList();
5959
if (!data) return;
6060

61-
this._products = data.products ?? [];
61+
this._products = data.result.products ?? [];
6262
this._loading = false;
6363

6464
if (!data.isValid || data.isExpired) {
65-
this._showError(data.error!);
65+
this._showError("Data is invalid or expired."!);
6666
}
6767
}
6868

src/Umbraco.Cms.Integrations.Commerce.Shopify/Client/src/property-editor/manifests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const propertyEditorUiManifest : ManifestPropertyEditorUi = {
1212
label: "Shopify Product Picker",
1313
icon: "icon-shopping-basket-alt",
1414
group: "pickers",
15-
propertyEditorSchemaAlias: 'Shopify.ProductPicker',
15+
propertyEditorSchemaAlias: 'Umbraco.Cms.Integrations.Commerce.Shopify.Core.ProductPicker',
1616
settings:{
1717
properties:[
1818
{
Lines changed: 15 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,15 @@
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

Comments
 (0)