File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed
controllers/account/billing/invoices Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change
1
+ {{ general-date @record @props.options.timezone @props.options.dateFormat }}
Original file line number Diff line number Diff line change @@ -18,7 +18,12 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
18
18
{
19
19
name : 'Date' ,
20
20
valuePath : 'issuedAt' ,
21
- isSortable : true
21
+ isSortable : true ,
22
+ cellComponent : 'ui-table/cell/cell-date' ,
23
+ options : {
24
+ timezone : 'UTC' ,
25
+ dateFormat : 'MMMM DD, YYYY'
26
+ }
22
27
} ,
23
28
{
24
29
name : 'Amount' ,
Original file line number Diff line number Diff line change @@ -5,11 +5,13 @@ export default class extends Route {
5
5
return this . l10n . tVar ( `Review Event Invoice - ${ model . get ( 'identifier' ) } ` ) ;
6
6
}
7
7
8
- model ( params ) {
9
- return this . store . findRecord ( 'event-invoice' , params . invoice_identifier , {
8
+ async model ( params ) {
9
+ const model = await this . store . findRecord ( 'event-invoice' , params . invoice_identifier , {
10
10
include : 'event,user' ,
11
11
reload : true
12
12
} ) ;
13
+ await model . reload ( ) ;
14
+ return model ;
13
15
}
14
16
15
17
afterModel ( model ) {
Original file line number Diff line number Diff line change 15
15
<strong >{{ t ' Event Name' }} :</strong > {{ this.model.event.name }}
16
16
</div >
17
17
<div class =" item" >
18
- <strong >{{ t ' Date Issued' }} :</strong > {{ moment-format this.model.issuedAt ' MM/DD/ YYYY' }}
18
+ <strong >{{ t ' Date Issued' }} :</strong > {{ general-date this.model.issuedAt ' UTC ' ' MMMM DD, YYYY' }}
19
19
</div >
20
20
<div class =" item" >
21
21
<strong >{{ t ' Total Invoice Amount' }} :</strong > {{ currency-symbol this.model.event.paymentCurrency }} {{ format-money this.model.amount }}
You can’t perform that action at this time.
0 commit comments