From 6e90e26cae89372d0c5dc8841da9f31e0a7c26b8 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Fri, 27 Dec 2024 11:33:30 +0100 Subject: [PATCH] refactor(Price validator assistant): only load 5 price tags on mobile (speed up). ref #1137 --- src/views/PriceValidatorAssistant.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/PriceValidatorAssistant.vue b/src/views/PriceValidatorAssistant.vue index d7b6bb6f88a..dbc8402fae7 100644 --- a/src/views/PriceValidatorAssistant.vue +++ b/src/views/PriceValidatorAssistant.vue @@ -66,8 +66,12 @@ export default { username() { return this.appStore.user.username }, + getApiSize() { + if (!this.$vuetify.display.smAndUp) return 5 + return 10 + }, getPriceTagsParams() { - return { proof__owner: this.username, proof__ready_for_price_tag_validation: true, status__isnull: true, order_by: this.currentOrder, page: this.priceTagPage } + return { proof__owner: this.username, proof__ready_for_price_tag_validation: true, status__isnull: true, order_by: this.currentOrder, size: this.getApiSize, page: this.priceTagPage } }, }, mounted() {