Skip to content

Commit 2a8e221

Browse files
Hieu Lam - TMAkhangon
authored andcommitted
fix-9076: Cannot show all entries when selecting "Show All" in View Attendees page (#9078)
* fix-9076: Cannot show all entries when selecting 'Show All' in View Attendees page * fix-9076: Cannot show all entries when selecting 'Show All' in View Attendees page * fix-9076: Cannot show all entries when selecting 'Show All' in View Attendees page --------- Co-authored-by: Khang On - TMA <[email protected]>
1 parent 052544b commit 2a8e221

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

app/mixins/ember-table-route.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default Mixin.create({
1919
refreshModel: true
2020
}
2121
},
22+
per_page: 10,
2223

2324
applySearchFilters(options, params, searchFields) {
2425
if (!Array.isArray(searchFields)) {

app/routes/events/view/tickets/attendees/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default class extends Route.extend(EmberTableRouteMixin) {
7171
let queryString = {
7272
include : 'user,order',
7373
filter : filterOptions,
74-
'page[size]' : params.per_page || 10,
74+
'page[size]' : params.per_page,
7575
'page[number]' : params.page || 1
7676
};
7777

app/styles/partials/utils.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@
246246
padding: 1rem !important;
247247
}
248248

249+
.z-index-0 {
250+
z-index: 0 !important;
251+
}
252+
249253
.mt-0 {
250254
margin-top: 0 !important;
251255
}

app/templates/components/tables/default.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</div>
1515
{{/unless}}
1616
</div>
17-
<div class="ui no bottom padding row">
17+
<div class="ui no bottom padding row z-index-0">
1818
<EmberTable @tableColor={{@color}} as |t|>
1919
<t.head
2020
@sortFunction={{null}}

app/templates/components/tables/utilities/page-size-input.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<span>
22
{{t 'Show'}}
33
<UiDropdown @class="inline" @onChange={{action (mut this.pageSize)}} @forceSelection={{true}}>
4-
<div class="default text">{{this.pageSize}}</div>
4+
<div class="default text">{{if (eq this.pageSize 0) 'All' this.pageSize}}</div>
55
<i class="dropdown icon"></i>
66
<div class="menu">
77
{{#each this.sizes as |size|}}

0 commit comments

Comments
 (0)