Fixes taxonomy sorting options appearing as name instead of title.

This commit is contained in:
Mateus Machado Luna 2019-05-07 14:46:53 -03:00
parent fb79949179
commit 50acee12bb
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -187,7 +187,7 @@
order: 'asc',
ordeBy: 'date',
sortingOptions: [
{ label: this.$i18n.get('label_name'), value: 'title' },
{ label: this.$i18n.get('label_title'), value: 'title' },
{ label: this.$i18n.get('label_creation_date'), value: 'date' },
]
}
@ -305,8 +305,8 @@
if (this.orderBy != this.$userPrefs.get('taxonomies_order_by'))
this.orderBy = this.$userPrefs.get('taxonomies_order_by');
if (!this.orderBy) {
this.orderBy = 'name';
this.$userPrefs.set('taxonomies_order_by', 'name');
this.orderBy = 'title';
this.$userPrefs.set('taxonomies_order_by', 'title');
}
this.load();