Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
rearrange divs
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Aug 15, 2023
1 parent be5fc7a commit 0cbaff3
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions src/views/product/list/ProductList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,28 @@
color="secondary"
></v-progress-circular>
</div>
<div v-if="showLoadMoreButton && productType" class="bottom-bar">
<div></div>
<div v-if="nItemsTotal > 1">
<span v-if="nodes.length == nItemsTotal">
{{ nItemsTotal }} {{ productType.plural }}
</span>
<span v-else>
{{ edges.length }} of {{ nItemsTotal }}
{{ productType.plural }}
</span>
<div v-if="showLoadMoreButton && productType">
<div class="bottom-bar">
<div></div>
<div v-if="nItemsTotal > 1">
<span v-if="nodes.length == nItemsTotal">
{{ nItemsTotal }} {{ productType.plural }}
</span>
<span v-else>
{{ edges.length }} of {{ nItemsTotal }}
{{ productType.plural }}
</span>
</div>
<v-btn
v-if="productType && productType.products"
:disabled="!productType.products.pageInfo.hasNextPage"
variant="tonal"
color="primary"
@click="loadMore()"
text="Load more"
>
</v-btn>
</div>
<v-btn
v-if="productType && productType.products"
:disabled="!productType.products.pageInfo.hasNextPage"
variant="tonal"
color="primary"
@click="loadMore()"
text="Load more"
>
</v-btn>
</div>
</div>
<div v-else-if="loading">
Expand Down

0 comments on commit 0cbaff3

Please sign in to comment.