Loads 9 instead of 5 collections on home page. Puts total amount of collections label on home page button.
This commit is contained in:
parent
16e8d13e41
commit
9d0ada1f6a
|
@ -245,16 +245,6 @@
|
|||
</router-link>
|
||||
</div>
|
||||
</masonry>
|
||||
<div
|
||||
v-if="collectionsTotal > collections.length"
|
||||
class="home-collections-footer">
|
||||
<router-link
|
||||
tag="button"
|
||||
to="/collections"
|
||||
class="button is-secondary">
|
||||
{{ $i18n.getWithVariables('label_view_all_%s_collections', [collectionsTotal]) }}
|
||||
</router-link>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -318,11 +308,6 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
.home-collections-footer {
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
|
|
|
@ -125,7 +125,9 @@
|
|||
<span class="icon">
|
||||
<i class="tainacan-icon tainacan-icon-20px tainacan-icon-viewtable"/>
|
||||
</span>
|
||||
<span class="menu-text">{{ $i18n.get('label_view_all_collections') }}</span>
|
||||
<span class="menu-text">
|
||||
{{ $i18n.getWithVariables('label_view_all_%s_collections', [collectionsTotal]) }}
|
||||
</span>
|
||||
</router-link>
|
||||
</div>
|
||||
<collections-home-list
|
||||
|
@ -169,7 +171,7 @@ export default {
|
|||
loadCollections() {
|
||||
this.cleanCollections();
|
||||
this.isLoadingCollections = true;
|
||||
this.fetchCollections({ page: 1, collectionsPerPage: 5, status: undefined, contextEdit: true })
|
||||
this.fetchCollections({ page: 1, collectionsPerPage: 9, status: undefined, contextEdit: true })
|
||||
.then((res) => {
|
||||
this.collectionsTotal = res.total;
|
||||
this.isLoadingCollections = false;
|
||||
|
|
|
@ -179,7 +179,7 @@
|
|||
display: flex;
|
||||
width: 100%;
|
||||
align-items: stretch;
|
||||
text-decoration: none; }
|
||||
text-decoration: none !important; }
|
||||
.wp-block-tainacan-dynamic-items-list .dynamic-items-collection-header:hover {
|
||||
text-decoration: none; }
|
||||
.wp-block-tainacan-dynamic-items-list .dynamic-items-collection-header .collection-name {
|
||||
|
@ -268,6 +268,7 @@
|
|||
border-color: #dbdbdb !important; } }
|
||||
.wp-block-tainacan-dynamic-items-list .dynamic-items-search-bar button {
|
||||
margin-right: 0.75rem;
|
||||
padding: 0 0.35rem;
|
||||
min-height: 28px;
|
||||
z-index: 2;
|
||||
border: none;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue