Add remove list needs payment functionality
This commit is contained in:
@@ -78,6 +78,9 @@ App.ApplicationController = Ember.Controller.extend
|
||||
# list.get('orders').addObject(order)
|
||||
|
||||
|
||||
remove_list_needs_payment: (data)->
|
||||
if list = @store.all('list').findBy 'id', data.id
|
||||
list.set 'needs_payment', false
|
||||
setCurrentList: (callback)->
|
||||
success = (list)=>
|
||||
#@store.find('list', 'current').deleteRecord() # gets not replaced, buty stays as dummy
|
||||
|
||||
Reference in New Issue
Block a user