Skip to content

Commit

Permalink
refactor(Price validator assistant): only load 5 price tags on mobile…
Browse files Browse the repository at this point in the history
… (speed up). ref #1137
  • Loading branch information
raphodn committed Dec 27, 2024
1 parent 4273a2e commit 6e90e26
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/PriceValidatorAssistant.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 6e90e26

Please sign in to comment.