Skip to content

Commit

Permalink
[DEV-365] Remove page size selector from ticket list in user view
Browse files Browse the repository at this point in the history
  • Loading branch information
mredigonda committed Jun 2, 2022
1 parent 36c5f32 commit 68b2d2b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
12 changes: 6 additions & 6 deletions client/src/app-components/ticket-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ class TicketList extends React.Component {
<div className="ticket-list__filters">
<div className="ticket-list__main-filters">
{(type === 'primary') ? this.renderMessage() : null}
{
((type === 'secondary') && showDepartmentDropdown) ?
this.renderDepartmentsDropDown() :
null
}
{
((type === 'secondary') && showDepartmentDropdown) ?
this.renderDepartmentsDropDown() :
null
}
{onClosedTicketsShownChange ? this.renderFilterCheckbox() : null}
</div>
{
{
showPageSizeDropdown ?
<PageSizeDropdown className="ticket-list__page-dropdown" pages={pages} onChange={(event) => this.pageSizeChange(event)} /> :
null
Expand Down
5 changes: 5 additions & 0 deletions client/src/app-components/ticket-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
&__main-filters {
display: flex;
align-items: center;
width: 100%;
}

&__department-selector {
Expand Down Expand Up @@ -62,3 +63,7 @@
}

}

.create-ticket-form__message {
width: 100%;
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class DashboardListTicketsPage extends React.Component {
page={page}
pages={pages}
tickets={tickets}
showPageSizeDropdown={false}
type={userUsers.length ? "secondary" : "primary"} />
{
message ?
Expand Down

0 comments on commit 68b2d2b

Please sign in to comment.