Add default sort to table
This commit is contained in:
parent
15b31f7c8a
commit
c8ffc95068
7 changed files with 25 additions and 3 deletions
|
@ -13,5 +13,6 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, {
|
|||
controller.set('model', model);
|
||||
controller.set('tableAttrs', tableAttrs);
|
||||
controller.set('row', 'species-index-row');
|
||||
controller.set('sort', ['speciesName']);
|
||||
},
|
||||
});
|
||||
|
|
|
@ -3,4 +3,10 @@
|
|||
|
||||
{{add-button label="Add Species" link="species.new"}}
|
||||
|
||||
{{sortable-table content=model tableAttrs=tableAttrs row=row}}
|
||||
{{
|
||||
sortable-table
|
||||
content=model
|
||||
tableAttrs=tableAttrs
|
||||
row=row
|
||||
sortProperties=sort
|
||||
}}
|
||||
|
|
Reference in a new issue