File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/controllers/events/view/tickets/discount-codes Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9,33 +9,39 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
9
9
return [
10
10
{
11
11
name : 'Discount code' ,
12
+ width : 100 ,
12
13
valuePath : 'code'
13
14
} ,
14
15
{
15
16
name : 'Discount code URL' ,
16
17
valuePath : 'discountUrl' ,
18
+ width : 220 ,
17
19
cellComponent : 'ui-table/cell/events/view/tickets/discount-codes/cell-url'
18
20
} ,
19
21
{
20
22
name : 'Discount Per Ticket' ,
21
23
valuePath : 'value' ,
24
+ width : 90 ,
22
25
extraValuePaths : [ 'type' , 'event' ] ,
23
26
cellComponent : 'ui-table/cell/events/view/tickets/discount-codes/cell-value'
24
27
} ,
25
28
{
26
29
name : 'Validity' ,
27
30
valuePath : 'validTill' ,
31
+ width : 120 ,
28
32
cellComponent : 'ui-table/cell/events/view/tickets/discount-codes/cell-validity'
29
33
} ,
30
34
{
31
35
name : 'Status' ,
32
36
valuePath : 'isActive' ,
37
+ width : 100 ,
33
38
extraValuePaths : [ 'isExpired' ] ,
34
39
cellComponent : 'ui-table/cell/events/view/tickets/discount-codes/cell-status'
35
40
} ,
36
41
{
37
42
name : 'Actions' ,
38
43
valuePath : 'id' ,
44
+ width : 170 ,
39
45
extraValuePaths : [ 'isActive' , 'isExpired' ] ,
40
46
cellComponent : 'ui-table/cell/events/view/tickets/discount-codes/cell-actions' ,
41
47
actions : {
@@ -88,6 +94,4 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
88
94
editDiscountCode ( id ) {
89
95
this . transitionToRoute ( 'events.view.tickets.discount-codes.edit' , id ) ;
90
96
}
91
-
92
-
93
97
}
You can’t perform that action at this time.
0 commit comments