sortable-table-header component setup

This commit is contained in:
2018-02-02 13:53:48 -03:00
parent 965a114d2d
commit cd7d92443b
8 changed files with 103 additions and 5 deletions
+3
View File
@@ -10,11 +10,14 @@ export default PagedRemoteArray.extend
@otherParams['q'] = query
#@setOtherParam('q', query) # explicitly not, init does not trigger operational callbacks
@_super arguments...
reload: ->
query = @get('filters')?.toProperties() || {}
@incrementProperty('filters.filter_calls')
@set 'page', 1
@set 'lastPage', null
@setOtherParam('q', query)
paramMapping:
total_pages: 'total-pages'
total_count: 'total-count'