Skip to content

Commit e7b88e1

Browse files
uds5501shreyanshdwivedi
authored andcommitted
feat: link invoices to respective pages (#3402)
1 parent b83ce2c commit e7b88e1

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

app/controllers/account/billing/invoices/list.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
6060
{
6161
name : 'View Invoice',
6262
valuePath : 'invoicePdfUrl'
63+
},
64+
{
65+
name : 'Action',
66+
valuePath : 'identifier',
67+
extraValuePaths : ['status'],
68+
cellComponent : 'ui-table/cell/events/cell-action'
6369
}
6470

6571
];
@@ -88,6 +94,12 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
8894
{
8995
name : 'View Invoice',
9096
valuePath : 'invoicePdfUrl'
97+
},
98+
{
99+
name : 'Action',
100+
valuePath : 'identifier',
101+
extraValuePaths : ['status'],
102+
cellComponent : 'ui-table/cell/events/cell-action'
91103
}
92104

93105
];
@@ -111,6 +123,12 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
111123
{
112124
name : 'Status',
113125
valuePath : 'status'
126+
},
127+
{
128+
name : 'Action',
129+
valuePath : 'identifier',
130+
extraValuePaths : ['status'],
131+
cellComponent : 'ui-table/cell/events/cell-action'
114132
}
115133

116134
];
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{#if (eq extraRecords.status 'due')}}
2+
{{#link-to 'event-invoice.review' record class='ui blue button'}}
3+
{{t 'Review and Pay'}}
4+
{{/link-to}}
5+
{{else}}
6+
{{#link-to 'event-invoice.paid' record class='ui green button'}}
7+
{{t 'See Payment'}}
8+
{{/link-to}}
9+
{{/if}}

0 commit comments

Comments
 (0)