Mozo upgrade progress
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
App.ListOrderView = Ember.View.extend
|
||||
classNames: 'list-order-container'
|
||||
classNameBindings: ['content.state', 'contentWrapClass']
|
||||
templateName: 'list_order_row'
|
||||
contentWrapClass: (-> "order-row-#{@get('content.id')}").property('content.id')
|
||||
#click: ->
|
||||
#if @route_param
|
||||
#@get('controller').transitionToRoute(@route, @route_param)
|
||||
#else
|
||||
#@get('controller').transitionToRoute(@route)
|
||||
#active: (->
|
||||
#if @get('controller.currentPath') == @route then 'active' else ''
|
||||
#).property('controller.currentPath')
|
||||
#init: ->
|
||||
#@templateName = "menu_item_#{@route}"
|
||||
#@_super()
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
App.MenuItemListNeedsHelpView = Ember.View.extend Ember.ViewTargetActionSupport,
|
||||
action: 'listNeedsHelp'
|
||||
templateName: "menu/list_needs_help"
|
||||
classNames: 'menu-list-item callout'
|
||||
classNameBindings: ['controller.list.needs_help:active']
|
||||
click: ->
|
||||
if @get('controller.list.needs_help')
|
||||
@set 'controller.notice', t('list_needs_help.help_is_on_its_way')
|
||||
else
|
||||
@triggerAction()
|
||||
@@ -1,10 +0,0 @@
|
||||
App.MenuItemListNeedsPaymentView = Ember.View.extend Ember.ViewTargetActionSupport,
|
||||
action: 'listNeedsPayment'
|
||||
templateName: "menu/list_needs_payment"
|
||||
classNames: 'menu-list-item callout'
|
||||
classNameBindings: ['controller.list.needs_payment:active']
|
||||
click: ->
|
||||
if @get('controller.list.needs_payment')
|
||||
@set 'controller.notice', t('list_needs_payment.payment_already_requested')
|
||||
else
|
||||
@triggerAction() #action: 'listNeedsPayment'
|
||||
@@ -1,7 +0,0 @@
|
||||
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'
|
||||
@@ -1,5 +0,0 @@
|
||||
App.MenuItemScanQrView = Ember.View.extend Ember.ViewTargetActionSupport,
|
||||
action: 'scanQr'
|
||||
templateName: "menu/scan_qr"
|
||||
classNames: 'menu-list-item'
|
||||
click: -> @triggerAction()
|
||||
@@ -1,14 +0,0 @@
|
||||
App.MenuItemView = Ember.View.extend
|
||||
classNames: 'menu-list-item'
|
||||
classNameBindings: ['active']
|
||||
click: ->
|
||||
if @route_param
|
||||
@get('controller').transitionToRoute(@route, @route_param)
|
||||
else
|
||||
@get('controller').transitionToRoute(@route)
|
||||
active: (->
|
||||
if @get('controller.currentPath') == @route then 'active' else ''
|
||||
).property('controller.currentPath')
|
||||
init: ->
|
||||
@templateName = "menu/#{@route}"
|
||||
@_super()
|
||||
Reference in New Issue
Block a user