Update item metadata pages sort

This commit is contained in:
advplyr 2022-12-18 15:16:32 -06:00
parent edbe1851b5
commit fe25a1bc54
3 changed files with 4 additions and 4 deletions

View File

@ -151,7 +151,7 @@ export default {
this.$axios
.$get('/api/genres')
.then((data) => {
this.genres = data.genres || []
this.genres = (data.genres || []).sort((a, b) => a.localeCompare(b, undefined, { sensitivity: 'base' }))
})
.catch((error) => {
console.error('Failed to load genres', error)

View File

@ -3,13 +3,13 @@
<app-settings-content :header-text="'Item Metadata Utils'">
<nuxt-link to="/config/item-metadata-utils/tags" class="block w-full rounded bg-primary/40 hover:bg-primary/60 text-gray-300 hover:text-white p-4 mt-6 mb-2">
<div class="flex justify-between">
<p>Manage Tags</p>
<p>{{ $strings.HeaderManageTags }}</p>
<span class="material-icons">arrow_forward</span>
</div>
</nuxt-link>
<nuxt-link to="/config/item-metadata-utils/genres" class="block w-full rounded bg-primary/40 hover:bg-primary/60 text-gray-300 hover:text-white p-4 my-2">
<div class="flex justify-between">
<p>Manage Genres</p>
<p>{{ $strings.HeaderManageGenres }}</p>
<span class="material-icons">arrow_forward</span>
</div>
</nuxt-link>

View File

@ -151,7 +151,7 @@ export default {
this.$axios
.$get('/api/tags')
.then((data) => {
this.tags = data.tags || []
this.tags = (data.tags || []).sort((a, b) => a.localeCompare(b, undefined, { sensitivity: 'base' }))
})
.catch((error) => {
console.error('Failed to load tags', error)