supplier menu progress

This commit is contained in:
2014-11-24 18:20:10 +01:00
parent 148a0a2815
commit 1707f4d19f
37 changed files with 7356 additions and 6046 deletions
@@ -0,0 +1,13 @@
App.MenuController = Ember.ObjectController.extend
needs: ['application']
product_categories: (-> @store.all('product_category')).property()
sorted_product_categories: (-> @get('product_categories').sortBy('position')).property('product_categories.@each', 'product_categories.@each.position')
actions:
editProductCategory: (product_category)->
@modal 'product_category_edit',
model: product_category,
close: -> product_category.rollback()
moveProductCategory: (product_category)->
@modal 'product_category_move',
model: product_category