File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
controllers/account/billing/invoices
templates/components/ui-table/cell/events Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
60
60
{
61
61
name : 'View Invoice' ,
62
62
valuePath : 'invoicePdfUrl'
63
+ } ,
64
+ {
65
+ name : 'Action' ,
66
+ valuePath : 'identifier' ,
67
+ extraValuePaths : [ 'status' ] ,
68
+ cellComponent : 'ui-table/cell/events/cell-action'
63
69
}
64
70
65
71
] ;
@@ -88,6 +94,12 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
88
94
{
89
95
name : 'View Invoice' ,
90
96
valuePath : 'invoicePdfUrl'
97
+ } ,
98
+ {
99
+ name : 'Action' ,
100
+ valuePath : 'identifier' ,
101
+ extraValuePaths : [ 'status' ] ,
102
+ cellComponent : 'ui-table/cell/events/cell-action'
91
103
}
92
104
93
105
] ;
@@ -111,6 +123,12 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
111
123
{
112
124
name : 'Status' ,
113
125
valuePath : 'status'
126
+ } ,
127
+ {
128
+ name : 'Action' ,
129
+ valuePath : 'identifier' ,
130
+ extraValuePaths : [ 'status' ] ,
131
+ cellComponent : 'ui-table/cell/events/cell-action'
114
132
}
115
133
116
134
] ;
Original file line number Diff line number Diff line change
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 }}
You can’t perform that action at this time.
0 commit comments