meta data

This commit is contained in:
Rimian Perkins
2019-10-16 21:06:19 +11:00
parent 496f2b9706
commit d02ba3ef6a
7 changed files with 35 additions and 21 deletions
@@ -4,10 +4,10 @@ export default Ember.Controller.extend({
actions: {
createProduct() {
// TODO: set default group name beforehand
if (this.get("model.product.groupName") === undefined) {
if (this.get("model.product.metadata.group_name") === undefined) {
this.set(
"model.product.groupName",
this.get("model.group.firstObject")
"model.product.metadata",
{ group_name: this.get("model.groups.firstObject.name") }
);
}