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

View File

@ -3,13 +3,13 @@
<app-settings-content :header-text="'Item Metadata Utils'"> <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"> <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"> <div class="flex justify-between">
<p>Manage Tags</p> <p>{{ $strings.HeaderManageTags }}</p>
<span class="material-icons">arrow_forward</span> <span class="material-icons">arrow_forward</span>
</div> </div>
</nuxt-link> </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"> <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"> <div class="flex justify-between">
<p>Manage Genres</p> <p>{{ $strings.HeaderManageGenres }}</p>
<span class="material-icons">arrow_forward</span> <span class="material-icons">arrow_forward</span>
</div> </div>
</nuxt-link> </nuxt-link>

View File

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