Fix initial spinning issue for suppliers lists index
This commit is contained in:
@@ -2,7 +2,7 @@ App.ListsIndexController = Ember.Controller.extend
|
||||
loading: true
|
||||
date: (new Date()).toISOString().substr(0,10) # 2015-11-02
|
||||
dateChanged: (->
|
||||
return unless date = @get('date')
|
||||
return @set('loading', false) unless date = @get('date')
|
||||
@set 'loading', true
|
||||
@store.query 'list', date: date
|
||||
.then => @set('loading', false)
|
||||
|
||||
Reference in New Issue
Block a user