Greenification of the specs
This commit is contained in:
+3
-4
@@ -1,7 +1,6 @@
|
||||
App.OrdersDisplayController = Ember.Controller.extend
|
||||
active_section: null
|
||||
sections: (-> @store.peekAll('section') ).property()
|
||||
orders: Ember.computed 'model.[]', 'active_section.id', ->
|
||||
sections: Ember.computed -> @store.peekAll('section')
|
||||
orders: Ember.computed 'model.[]', 'globals.active_section.id', ->
|
||||
orders = @get('model').filterBy('needs_supplier_attention')
|
||||
orders = orders.filterBy('section.id', id) if id = @get('active_section.id')
|
||||
orders = orders.filterBy('list.section.id', id) if id = @get('globals.active_section.id')
|
||||
orders.sortBy('created_at') # Not reversed, oldest on top, start with oldest order first :-) Customer happyness
|
||||
@@ -15,7 +15,7 @@ App.Router.map ->
|
||||
@route 'employees'
|
||||
@route 'employee', path: '/employees/:employee_id'
|
||||
@route 'page', path: 'pages/:page_id'
|
||||
@route 'orders_display' # chromecast etc
|
||||
@route 'orders-display' # chromecast etc
|
||||
@route 'menu'
|
||||
@route 'settings'
|
||||
@route 'schedule'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
= sections-header active_section=section
|
||||
= sections-header active_section=globals.active_section
|
||||
table.table
|
||||
thead
|
||||
tr
|
||||
Reference in New Issue
Block a user