Syncs loading flag for items list component with loading of metadata and filters. Fixes masonry skeleton not adjusting height before image file is loaded. Updates Buefy.

This commit is contained in:
Mateus Machado Luna 2019-05-27 16:00:20 -03:00
parent 85fc8e0920
commit 5cc89c4cc6
5 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@
},
"dependencies": {
"axios": "^0.18.0",
"buefy": "^0.7.5",
"buefy": "^0.7.6",
"bulma": "^0.7.4",
"mdi": "^2.2.43",
"moment": "^2.22.2",

View File

@ -727,7 +727,7 @@
:items="items"
:is-filters-menu-compressed="isFiltersMenuCompressed || openAdvancedSearch "
:total-items="totalItems"
:is-loading="isLoadingItems"
:is-loading="showLoading"
:is="registeredViewModes[viewMode] != undefined ? registeredViewModes[viewMode].component : ''"/>
<!-- Empty Placeholder (only used in Admin) -->

View File

@ -711,7 +711,7 @@
:items="items"
:is-filters-menu-compressed="isFiltersMenuCompressed"
:total-items="totalItems"
:is-loading="isLoadingItems"
:is-loading="showLoading"
:is="registeredViewModes[viewMode] != undefined ? registeredViewModes[viewMode].component : ''"/>
<!-- Empty Placeholder (only used in Admin) -->

View File

@ -74,6 +74,7 @@
width: 100%;
height: auto;
transition: height 0.2s ease;
display: block;
}
img:not(.skeleton) {
visibility: hidden;

View File

@ -320,7 +320,6 @@ export default {
if (this.$store.getters['search/getPostQuery']['fetch_only'] == undefined) {
this.$emit( 'hasToPrepareMetadataAndFilters', to);
} else {
this.$emit( 'isLoadingItems', true);
// Cancels previous Request