[web] Remove useless component parameter

This commit is contained in:
Alain Nussbaumer
2024-03-20 22:01:17 +01:00
parent 91b0c3a643
commit 5c8639aeef
8 changed files with 12 additions and 22 deletions

View File

@@ -59,7 +59,7 @@
v-text="$t('page.artist.track-count', { count: track_count })"
/>
</p>
<list-albums :albums="albums" :hide_group_title="true" />
<list-albums :albums="albums" />
<modal-dialog-artist
:show="show_details_modal"
:artist="artist"
@@ -123,15 +123,12 @@ export default {
{
id: 1,
name: this.$t('page.artist.sort.name'),
options: { index: { field: 'name_sort', type: String } }
options: { criteria: [{ field: 'name_sort', type: String }] }
},
{
id: 2,
name: this.$t('page.artist.sort.release-date'),
options: {
criteria: [{ field: 'date_released', type: Date }],
index: { field: 'date_released', type: Date }
}
options: { criteria: [{ field: 'date_released', type: Date }] }
}
],
show_details_modal: false

View File

@@ -34,7 +34,7 @@
"
/>
</p>
<list-albums :albums="albums" :hide_group_title="true" />
<list-albums :albums="albums" />
<modal-dialog-composer
:show="show_details_modal"
:composer="composer"

View File

@@ -83,7 +83,7 @@
<p class="title is-4" v-text="$t('page.search.artists')" />
</template>
<template #content>
<list-artists :artists="artists" :hide_group_title="true" />
<list-artists :artists="artists" />
</template>
<template #footer>
<nav v-if="show_all_button(artists)" class="level">
@@ -112,7 +112,7 @@
<p class="title is-4" v-text="$t('page.search.albums')" />
</template>
<template #content>
<list-albums :albums="albums" :hide_group_title="true" />
<list-albums :albums="albums" />
</template>
<template #footer>
<nav v-if="show_all_button(albums)" class="level">

View File

@@ -440,10 +440,7 @@ export default {
search() {
this.reset()
this.search_query = this.query.query?.trim()
if (
!this.search_query ||
this.search_query.startsWith('query:')
) {
if (!this.search_query || this.search_query.startsWith('query:')) {
this.search_query = ''
this.$refs.search_field.focus()
return