Skip to content

Commit b497611

Browse files
saksham2410abhinavk96
authored andcommitted
Update list.js (#3516)
1 parent 50940d3 commit b497611

File tree

1 file changed

+6
-2
lines changed
  • app/controllers/events/view/tickets/discount-codes

1 file changed

+6
-2
lines changed

app/controllers/events/view/tickets/discount-codes/list.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,39 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
99
return [
1010
{
1111
name : 'Discount code',
12+
width : 100,
1213
valuePath : 'code'
1314
},
1415
{
1516
name : 'Discount code URL',
1617
valuePath : 'discountUrl',
18+
width : 220,
1719
cellComponent : 'ui-table/cell/events/view/tickets/discount-codes/cell-url'
1820
},
1921
{
2022
name : 'Discount Per Ticket',
2123
valuePath : 'value',
24+
width : 90,
2225
extraValuePaths : ['type', 'event'],
2326
cellComponent : 'ui-table/cell/events/view/tickets/discount-codes/cell-value'
2427
},
2528
{
2629
name : 'Validity',
2730
valuePath : 'validTill',
31+
width : 120,
2832
cellComponent : 'ui-table/cell/events/view/tickets/discount-codes/cell-validity'
2933
},
3034
{
3135
name : 'Status',
3236
valuePath : 'isActive',
37+
width : 100,
3338
extraValuePaths : ['isExpired'],
3439
cellComponent : 'ui-table/cell/events/view/tickets/discount-codes/cell-status'
3540
},
3641
{
3742
name : 'Actions',
3843
valuePath : 'id',
44+
width : 170,
3945
extraValuePaths : ['isActive', 'isExpired'],
4046
cellComponent : 'ui-table/cell/events/view/tickets/discount-codes/cell-actions',
4147
actions : {
@@ -88,6 +94,4 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
8894
editDiscountCode(id) {
8995
this.transitionToRoute('events.view.tickets.discount-codes.edit', id);
9096
}
91-
92-
9397
}

0 commit comments

Comments
 (0)