supplier menu progress
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user