Add product orders menu item

This commit is contained in:
2014-09-05 13:51:18 +02:00
parent f4c0a23eea
commit 76525bbfd4
8 changed files with 15 additions and 2 deletions
@@ -1,6 +1,6 @@
App.MenuItemListNeedsPaymentView = Ember.View.extend Ember.ViewTargetActionSupport,
action: 'listNeedsPayment'
templateName: "menu_item_list_needs_payment"
templateName: "menu/list_needs_payment"
classNames: 'menu-list-item callout'
classNameBindings: ['controller.list.needs_payment:active']
click: ->
@@ -8,4 +8,3 @@ App.MenuItemListNeedsPaymentView = Ember.View.extend Ember.ViewTargetActionSuppo
@set 'controller.notice', t('list_needs_payment.payment_already_requested')
else
@triggerAction() #action: 'listNeedsPayment'
@@ -0,0 +1,7 @@
App.MenuItemProductOrdersView = Ember.View.extend
templateName: 'menu/product_orders'
classNames: ['menu-list-item', 'menu-list-item-product-orders']
classNameBindings: ['controller.controllers.product_orders.product_orders.length:show:hide', 'currentRoute:active']
currentRoute: (-> @get('controller.currentRouteName') is 'product_orders' ).property('controller.currentRouteName')
click: ->
@get('controller').transitionToRoute 'product_orders'