New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin Panel pagination preferences cleanup #7730
Admin Panel pagination preferences cleanup #7730
Conversation
@@ -16,7 +16,7 @@ def collection | |||
@search = @collection.ransack(params[:q]) | |||
@collection = @search.result. | |||
page(params[:page]). | |||
per(Spree::Config[:properties_per_page]) | |||
per(Spree::Config[:admin_properties_per_page]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Align per with @search.result. on line 17.
@@ -25,7 +25,7 @@ def collection | |||
@collection = @search.result(distinct: true). | |||
includes(promotion_includes). | |||
page(params[:page]). | |||
per(params[:per_page] || Spree::Config[:promotions_per_page]) | |||
per(params[:per_page] || Spree::Config[:admin_promotions_per_page]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Align per with @search.result(distinct: true). on line 25.
@@ -41,7 +41,7 @@ def index | |||
# see https://github.com/spree/spree/pull/3919 | |||
@orders = @search.result(distinct: true). | |||
page(params[:page]). | |||
per(params[:per_page] || Spree::Config[:orders_per_page]) | |||
per(params[:per_page] || Spree::Config[:admin_orders_per_page]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Align per with @search.result(distinct: true). on line 42.
cae9744
to
7335f21
Compare
@damianlegawiec please rebase with current master. |
…s default value to 30
…nd raises default value to 30
…nd raises default value to 30
…tion preferences in Admin Panel
…in_customer_returns_per_page which actually is used this time
7335f21
to
5022f1f
Compare
@Mafi88 done! |
Previously this was a mess, each list had different settings, some of them weren't even used.