Add product orders menu item
This commit is contained in:
@@ -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'
|
||||
Reference in New Issue
Block a user