[DEV-365] Remove page size selector from ticket list in user view

This commit is contained in:
Maxi Redigonda 2022-06-02 18:26:51 -03:00
parent 36c5f3264b
commit 68b2d2bf63
3 changed files with 12 additions and 6 deletions

View File

@ -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

View File

@ -17,6 +17,7 @@
&__main-filters {
display: flex;
align-items: center;
width: 100%;
}
&__department-selector {
@ -62,3 +63,7 @@
}
}
.create-ticket-form__message {
width: 100%;
}

View File

@ -56,6 +56,7 @@ class DashboardListTicketsPage extends React.Component {
page={page}
pages={pages}
tickets={tickets}
showPageSizeDropdown={false}
type={userUsers.length ? "secondary" : "primary"} />
{
message ?