Adds sorting options to collection list.

This commit is contained in:
Mateus Machado Luna 2019-01-30 12:23:18 -02:00
parent edc84e6ad5
commit 3fdc4c467f
2 changed files with 5 additions and 5 deletions

View File

@ -115,9 +115,9 @@ UserPrefsPlugin.install = function (Vue, options = {}) {
'admin_view_mode': 'cards',
'fetch_only': 'thumbnail,creation_date,author_name',
'fetch_only_meta': '',
'taxonomies_order': 'asc',
'taxonomies_order': 'desc',
'taxonomies_order_by': 'date',
'collections_order': 'asc',
'collections_order': 'desc',
'collections_order_by': 'date'
},
init() {

View File

@ -53,7 +53,7 @@
</div>
<!-- Sorting options ---- -->
<!-- <b-field class="header-item">
<b-field class="header-item">
<b-select
class="sorting-select"
:disabled="collections.length <= 0"
@ -83,7 +83,7 @@
<i class="tainacan-icon tainacan-icon-sortdescending tainacan-icon-20px"/>
</span>
</button>
</b-field> -->
</b-field>
</div>
<div class="above-subheader">
@ -236,7 +236,7 @@ export default {
collectionsPerPage: 12,
isLoadingMetadatumMappers: true,
status: '',
order: 'asc',
order: 'desc',
ordeBy: 'date',
sortingOptions: [
{ label: this.$i18n.get('label_title'), value: 'title' },