Skip to content

Commit

Permalink
fix-9076: Cannot show all entries when selecting "Show All" in View A…
Browse files Browse the repository at this point in the history
…ttendees 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 <135116292+khangon@users.noreply.github.com>
  • Loading branch information
Hieu Lam - TMA and khangon committed Aug 21, 2023
1 parent 2ba0fe3 commit 8ef23c3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/mixins/ember-table-route.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default Mixin.create({
refreshModel: true
}
},
per_page: 10,

applySearchFilters(options, params, searchFields) {
if (!Array.isArray(searchFields)) {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/events/view/tickets/attendees/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class extends Route.extend(EmberTableRouteMixin) {
let queryString = {
include : 'user,order',
filter : filterOptions,
'page[size]' : params.per_page || 10,
'page[size]' : params.per_page,
'page[number]' : params.page || 1
};

Expand Down
4 changes: 4 additions & 0 deletions app/styles/partials/utils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@
padding: 1rem !important;
}

.z-index-0 {
z-index: 0 !important;
}

.mt-0 {
margin-top: 0 !important;
}
Expand Down
2 changes: 1 addition & 1 deletion app/templates/components/tables/default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</div>
{{/unless}}
</div>
<div class="ui no bottom padding row">
<div class="ui no bottom padding row z-index-0">
<EmberTable @tableColor={{@color}} as |t|>
<t.head
@sortFunction={{null}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<span>
{{t 'Show'}}
<UiDropdown @class="inline" @onChange={{action (mut this.pageSize)}} @forceSelection={{true}}>
<div class="default text">{{this.pageSize}}</div>
<div class="default text">{{if (eq this.pageSize 0) 'All' this.pageSize}}</div>
<i class="dropdown icon"></i>
<div class="menu">
{{#each this.sizes as |size|}}
Expand Down

0 comments on commit 8ef23c3

Please sign in to comment.