File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
controllers/account/billing/invoices
routes/account/billing/invoices
templates/account/billing/invoices Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -118,11 +118,15 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
118
118
name : 'Amount' ,
119
119
valuePath : 'amount' ,
120
120
extraValuePaths : [ 'event' ] ,
121
- cellComponent : 'ui-table/cell/events/cell-amount'
121
+ cellComponent : 'ui-table/cell/events/cell-amount' ,
122
+ isSortable : true ,
123
+ headerComponent : 'tables/headers/sort'
122
124
} ,
123
125
{
124
- name : 'Status' ,
125
- valuePath : 'status'
126
+ name : 'Status' ,
127
+ valuePath : 'status' ,
128
+ isSortable : true ,
129
+ headerComponent : 'tables/headers/sort'
126
130
} ,
127
131
{
128
132
name : 'Action' ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export default class extends Route.extend(EmberTableRouteMixin) {
18
18
}
19
19
async model ( params ) {
20
20
this . set ( 'params' , params ) ;
21
- const searchField = 'name ' ;
21
+ const searchField = 'status ' ;
22
22
let filterOptions = [ ] ;
23
23
if ( params . invoice_status === 'paid' || params . invoice_status === 'due' ) {
24
24
filterOptions = [
@@ -59,7 +59,7 @@ export default class extends Route.extend(EmberTableRouteMixin) {
59
59
60
60
queryString = this . applySortFilters ( queryString , params ) ;
61
61
return {
62
- eventInvoices : ( await this . store . query ( 'event-invoice' , queryString ) ) . toArray ( ) ,
62
+ eventInvoices : await this . asArray ( this . store . query ( 'event-invoice' , queryString ) ) ,
63
63
params
64
64
65
65
} ;
Original file line number Diff line number Diff line change 1
1
<div class =" sixteen wide column" >
2
2
{{ tables/default columns =columns
3
- rows =model.eventInvoices
3
+ rows =model.eventInvoices.data
4
4
currentPage =page
5
5
pageSize =per_page
6
6
searchQuery =search
You can’t perform that action at this time.
0 commit comments