Add remove list needs payment functionality

This commit is contained in:
2014-09-01 10:45:11 +02:00
parent f76c883bb9
commit ef7c242018
10 changed files with 46 additions and 3 deletions
@@ -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