diff --git a/addon/controllers/products/index/category/new.js b/addon/controllers/products/index/category/new.js
index 1e6878f..9cda403 100644
--- a/addon/controllers/products/index/category/new.js
+++ b/addon/controllers/products/index/category/new.js
@@ -40,6 +40,15 @@ export default class ProductsIndexCategoryNewController extends BaseController {
return this.productsIndexCategoryController?.category ?? null;
}
+ get variantTabs() {
+ const variants = this.product.variants ?? [];
+ return variants.map((v) => ({
+ label: v.name,
+ id: v.public_id ?? v.name,
+ variant: v,
+ }));
+ }
+
/** overlay options */
@tracked overlayTitle = 'New Product';
@tracked overlayActionButtonTitle = 'Create Product';
@@ -117,6 +126,7 @@ export default class ProductsIndexCategoryNewController extends BaseController {
subject_uuid: this.product.id,
subject_type: 'storefront:product',
type: 'storefront_product',
+ resize: 'md',
},
(uploadedFile) => {
this.product.files.pushObject(uploadedFile);
diff --git a/addon/templates/products/index/category/new.hbs b/addon/templates/products/index/category/new.hbs
index 8990c83..c9624c9 100644
--- a/addon/templates/products/index/category/new.hbs
+++ b/addon/templates/products/index/category/new.hbs
@@ -100,25 +100,6 @@
- {{!-- {{#each this.product.meta_array as |metaField index|}}
-
- {{/each}} --}}
@@ -130,7 +111,7 @@
/>
-
+
This is a service
@@ -164,18 +145,19 @@
-
-
-
-
-
- {{#each this.product.variants as |variant|}}
-
+
+
+ <:actions>
+
+
+ <:default as |activeTab|>
+ {{#let activeTab.variant as |variant|}}
-
- {{/each}}
-
+ {{/let}}
+
+
@@ -248,6 +232,7 @@