Skip to content

Commit 3577339

Browse files
fix(VCST-4305): the table head is shown on empty page (#2085)
## Description ## References ### Jira-link: https://virtocommerce.atlassian.net/browse/VCST-4305 ### Artifact URL: https://vc3prerelease.blob.core.windows.net/packages/vc-theme-b2b-vue-2.36.0-pr-2085-1dfc-1dfc509e.zip
1 parent b224475 commit 3577339

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

client-app/shared/catalog/components/product/variations.vue

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -69,31 +69,33 @@
6969
</div>
7070
</div>
7171

72-
<VariationsDefault
73-
v-else-if="isSmallScreen || (!isSmallScreen && !isTableView)"
74-
:variations="variations || []"
75-
:fetching="fetchingVariations"
76-
:page-number="pageNumber"
77-
:pages-count="pagesCount"
78-
@change-page="changePage"
79-
/>
80-
81-
<VariationsTable
82-
v-else
83-
:variations="variations || []"
84-
:sort="sort"
85-
:fetching="fetchingVariations"
86-
:page-number="pageNumber"
87-
:pages-count="pagesCount"
88-
@apply-sorting="applySorting"
89-
@change-page="changePage"
90-
/>
91-
9272
<VcEmptyView
9373
v-if="variations?.length === 0 && !fetchingVariations"
9474
:text="$t('shared.catalog.product_details.variations.no_results')"
9575
icon="outline-stock"
9676
/>
77+
78+
<template v-else>
79+
<VariationsDefault
80+
v-if="isSmallScreen || (!isSmallScreen && !isTableView)"
81+
:variations="variations || []"
82+
:fetching="fetchingVariations"
83+
:page-number="pageNumber"
84+
:pages-count="pagesCount"
85+
@change-page="changePage"
86+
/>
87+
88+
<VariationsTable
89+
v-else
90+
:variations="variations || []"
91+
:sort="sort"
92+
:fetching="fetchingVariations"
93+
:page-number="pageNumber"
94+
:pages-count="pagesCount"
95+
@apply-sorting="applySorting"
96+
@change-page="changePage"
97+
/>
98+
</template>
9799
</VcWidget>
98100
</template>
99101

0 commit comments

Comments
 (0)