Allow deeply nested objects to have media
Without this change, we can’t pass something like `product.attributes.color` as the “model”. This allows us to do some really weird things, like allow only the first child of some object to have media (e.x.: `model === ‘parent.children[0]’`). This does NOT prevent problems where the model doesn’t exist (you’ll get an error: `TypeError: Cannot read property 'medias_single' of undefined`), but that’s something that the developer should check (make sure you have the right path). The Typy package has some other neat things it can do, if you’re interested: https://github.com/flexdinesh/typySigned-off-by: Micheal Mand <micheal@kmdwebdesigns.com>
Showing
... | ... | @@ -29,6 +29,7 @@ |
"form-backend-validation": "^2.3.3", | ||
"lodash": "^4.17.10", | ||
"moment": "^2.22.2", | ||
"typy": "^2.0.1", | ||
"vue": "^2.5.16", | ||
"vue-data-tables": "^3.4.0", | ||
"vue-events": "^3.1.0", | ||
... | ... |
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
Please register or sign in to comment