Shows hidden loading overlay on advanced search. Makes sure defaultviewmode is loaded on term items page.
This commit is contained in:
parent
ef95f18284
commit
50cf69c434
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<section
|
||||
style="position: relative;"
|
||||
:style="{ position: relative }"
|
||||
v-if="!metadata || metadata.length <= 0"
|
||||
class="field is-grouped-centered section">
|
||||
<b-loading
|
||||
|
@ -646,6 +646,10 @@
|
|||
|
||||
@import '../../scss/_variables.scss';
|
||||
|
||||
.loading-overlay {
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
.padding-in-header {
|
||||
padding-right: 3.3%;
|
||||
padding-left: 3.7%;
|
||||
|
|
|
@ -111,8 +111,8 @@ UserPrefsPlugin.install = function (Vue, options = {}) {
|
|||
slug: 'creation_date',
|
||||
name: 'Creation Date'
|
||||
},
|
||||
'view_mode': 'cards',
|
||||
'admin_view_mode': 'table',
|
||||
'view_mode': undefined,
|
||||
'admin_view_mode': 'cards',
|
||||
'fetch_only': {
|
||||
0: 'thumbnail',
|
||||
1: 'creation_date',
|
||||
|
|
|
@ -1142,7 +1142,7 @@
|
|||
} else {
|
||||
let prefsAdminViewMode = !this.isRepositoryLevel ? 'admin_view_mode_' + this.collectionId : 'admin_view_mode';
|
||||
if (this.$userPrefs.get(prefsAdminViewMode) == undefined)
|
||||
this.$eventBusSearch.setInitialAdminViewMode('table');
|
||||
this.$eventBusSearch.setInitialAdminViewMode('cards');
|
||||
else {
|
||||
let existingViewMode = this.$userPrefs.get(prefsAdminViewMode);
|
||||
if (existingViewMode == 'cards' ||
|
||||
|
@ -1152,7 +1152,7 @@
|
|||
existingViewMode == 'masonry')
|
||||
this.$eventBusSearch.setInitialAdminViewMode(this.$userPrefs.get(prefsAdminViewMode));
|
||||
else
|
||||
this.$eventBusSearch.setInitialAdminViewMode('table');
|
||||
this.$eventBusSearch.setInitialAdminViewMode('cards');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue