From a6aa78e3b614a8c0ad10d292a0635fd73cc8758e Mon Sep 17 00:00:00 2001 From: Prospector <6166773+Prospector@users.noreply.github.com> Date: Wed, 11 Jan 2023 12:49:44 -0800 Subject: [PATCH] Balance search pages to have view mode-aware max search results (#858) * Balance search pages to have view mode-aware max search results * Remove console.log * Implement #829 to prevent invalid pages when changing the max results * dammit --- pages/search.vue | 47 +++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 43 insertions(+), 4 deletions(-) diff --git a/pages/search.vue b/pages/search.vue index 268cb1e1..f28ecdfd 100644 --- a/pages/search.vue +++ b/pages/search.vue @@ -307,12 +307,14 @@ v-model="maxResults" placeholder="Select one" class="labeled-control__control" - :options="[5, 10, 15, 20, 50, 100]" + :options=" + maxResultsForView[$cosmetics.searchDisplayMode[projectType.id]] + " :searchable="false" :close-on-select="true" :show-labels="false" :allow-empty="false" - @input="onSearchChange(currentPage)" + @input="onMaxResultsChange(currentPage)" />