menu and section header progress

This commit is contained in:
2014-11-26 20:18:17 +01:00
parent a64d3de319
commit 60f014811c
38 changed files with 450 additions and 96 deletions
@@ -16,3 +16,5 @@ App.MenuController = Ember.ObjectController.extend
@modal 'product_category_new',
model: @store.createRecord('product_category', position: @get('product_categories.length'))
close: -> @get('model').deleteRecord()
addProduct: (product_category)->
product_category.get('products').addObject @store.createRecord 'product', position: product_category.get('products.length')