menu and section header progress
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user