Improvements to new menu product category editing and adding new
This commit is contained in:
@@ -5,9 +5,14 @@ App.MenuController = Ember.ObjectController.extend
|
||||
actions:
|
||||
editProductCategory: (product_category)->
|
||||
@modal 'product_category_edit',
|
||||
model: product_category,
|
||||
model: product_category
|
||||
close: -> product_category.rollback()
|
||||
destroy_text_path: 'product_category.modal.destroy_confirm_text'
|
||||
|
||||
moveProductCategory: (product_category)->
|
||||
@modal 'product_category_move',
|
||||
model: product_category
|
||||
newProductCategory: ->
|
||||
@modal 'product_category_new',
|
||||
model: @store.createRecord('product_category', position: @get('product_categories.length'))
|
||||
close: -> @get('model').deleteRecord()
|
||||
|
||||
Reference in New Issue
Block a user