Adds sorting options to collection list.
This commit is contained in:
parent
edc84e6ad5
commit
3fdc4c467f
|
@ -115,9 +115,9 @@ UserPrefsPlugin.install = function (Vue, options = {}) {
|
||||||
'admin_view_mode': 'cards',
|
'admin_view_mode': 'cards',
|
||||||
'fetch_only': 'thumbnail,creation_date,author_name',
|
'fetch_only': 'thumbnail,creation_date,author_name',
|
||||||
'fetch_only_meta': '',
|
'fetch_only_meta': '',
|
||||||
'taxonomies_order': 'asc',
|
'taxonomies_order': 'desc',
|
||||||
'taxonomies_order_by': 'date',
|
'taxonomies_order_by': 'date',
|
||||||
'collections_order': 'asc',
|
'collections_order': 'desc',
|
||||||
'collections_order_by': 'date'
|
'collections_order_by': 'date'
|
||||||
},
|
},
|
||||||
init() {
|
init() {
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Sorting options ---- -->
|
<!-- Sorting options ---- -->
|
||||||
<!-- <b-field class="header-item">
|
<b-field class="header-item">
|
||||||
<b-select
|
<b-select
|
||||||
class="sorting-select"
|
class="sorting-select"
|
||||||
:disabled="collections.length <= 0"
|
:disabled="collections.length <= 0"
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
<i class="tainacan-icon tainacan-icon-sortdescending tainacan-icon-20px"/>
|
<i class="tainacan-icon tainacan-icon-sortdescending tainacan-icon-20px"/>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</b-field> -->
|
</b-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="above-subheader">
|
<div class="above-subheader">
|
||||||
|
@ -236,7 +236,7 @@ export default {
|
||||||
collectionsPerPage: 12,
|
collectionsPerPage: 12,
|
||||||
isLoadingMetadatumMappers: true,
|
isLoadingMetadatumMappers: true,
|
||||||
status: '',
|
status: '',
|
||||||
order: 'asc',
|
order: 'desc',
|
||||||
ordeBy: 'date',
|
ordeBy: 'date',
|
||||||
sortingOptions: [
|
sortingOptions: [
|
||||||
{ label: this.$i18n.get('label_title'), value: 'title' },
|
{ label: this.$i18n.get('label_title'), value: 'title' },
|
||||||
|
|
Loading…
Reference in New Issue