mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-05 02:38:09 -05:00
[web] Remove useless component parameter
This commit is contained in:
parent
91b0c3a643
commit
5c8639aeef
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<template v-for="album in albums" :key="album.itemId">
|
<template v-for="album in albums" :key="album.itemId">
|
||||||
<div v-if="!album.isItem && !hide_group_title" class="mt-6 mb-5 py-2">
|
<div v-if="!album.isItem" class="mt-6 mb-5 py-2">
|
||||||
<span
|
<span
|
||||||
:id="'index_' + album.index"
|
:id="'index_' + album.index"
|
||||||
class="tag is-info is-light is-small has-text-weight-bold"
|
class="tag is-info is-light is-small has-text-weight-bold"
|
||||||
@ -79,7 +79,6 @@ export default {
|
|||||||
components: { CoverArtwork, ModalDialog, ModalDialogAlbum },
|
components: { CoverArtwork, ModalDialog, ModalDialogAlbum },
|
||||||
props: {
|
props: {
|
||||||
albums: { required: true, type: Object },
|
albums: { required: true, type: Object },
|
||||||
hide_group_title: Boolean,
|
|
||||||
media_kind: { default: '', type: String }
|
media_kind: { default: '', type: String }
|
||||||
},
|
},
|
||||||
emits: ['play-count-changed', 'podcast-deleted'],
|
emits: ['play-count-changed', 'podcast-deleted'],
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<template v-for="artist in artists" :key="artist.itemId">
|
<template v-for="artist in artists" :key="artist.itemId">
|
||||||
<div v-if="!artist.isItem && !hide_group_title" class="mt-6 mb-5 py-2">
|
<div v-if="!artist.isItem" class="mt-6 mb-5 py-2">
|
||||||
<div class="media-content is-clipped">
|
<div class="media-content is-clipped">
|
||||||
<span
|
<span
|
||||||
:id="'index_' + artist.index"
|
:id="'index_' + artist.index"
|
||||||
@ -40,8 +40,7 @@ export default {
|
|||||||
name: 'ListArtists',
|
name: 'ListArtists',
|
||||||
components: { ModalDialogArtist },
|
components: { ModalDialogArtist },
|
||||||
props: {
|
props: {
|
||||||
artists: { required: true, type: Object },
|
artists: { required: true, type: Object }
|
||||||
hide_group_title: Boolean
|
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<template v-for="composer in composers" :key="composer.itemId">
|
<template v-for="composer in composers" :key="composer.itemId">
|
||||||
<div v-if="!composer.isItem && !hide_group_title" class="mt-6 mb-5 py-2">
|
<div v-if="!composer.isItem" class="mt-6 mb-5 py-2">
|
||||||
<div class="media-content is-clipped">
|
<div class="media-content is-clipped">
|
||||||
<span
|
<span
|
||||||
:id="'index_' + composer.index"
|
:id="'index_' + composer.index"
|
||||||
@ -42,7 +42,6 @@ export default {
|
|||||||
components: { ModalDialogComposer },
|
components: { ModalDialogComposer },
|
||||||
props: {
|
props: {
|
||||||
composers: { required: true, type: Object },
|
composers: { required: true, type: Object },
|
||||||
hide_group_title: Boolean,
|
|
||||||
media_kind: { default: '', type: String }
|
media_kind: { default: '', type: String }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<template v-for="genre in genres" :key="genre.itemId">
|
<template v-for="genre in genres" :key="genre.itemId">
|
||||||
<div v-if="!genre.isItem && !hide_group_title" class="mt-6 mb-5 py-2">
|
<div v-if="!genre.isItem" class="mt-6 mb-5 py-2">
|
||||||
<div class="media-content is-clipped">
|
<div class="media-content is-clipped">
|
||||||
<span
|
<span
|
||||||
:id="'index_' + genre.index"
|
:id="'index_' + genre.index"
|
||||||
@ -42,7 +42,6 @@ export default {
|
|||||||
components: { ModalDialogGenre },
|
components: { ModalDialogGenre },
|
||||||
props: {
|
props: {
|
||||||
genres: { required: true, type: Object },
|
genres: { required: true, type: Object },
|
||||||
hide_group_title: Boolean,
|
|
||||||
media_kind: { required: true, type: String }
|
media_kind: { required: true, type: String }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
v-text="$t('page.artist.track-count', { count: track_count })"
|
v-text="$t('page.artist.track-count', { count: track_count })"
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
<list-albums :albums="albums" :hide_group_title="true" />
|
<list-albums :albums="albums" />
|
||||||
<modal-dialog-artist
|
<modal-dialog-artist
|
||||||
:show="show_details_modal"
|
:show="show_details_modal"
|
||||||
:artist="artist"
|
:artist="artist"
|
||||||
@ -123,15 +123,12 @@ export default {
|
|||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
name: this.$t('page.artist.sort.name'),
|
name: this.$t('page.artist.sort.name'),
|
||||||
options: { index: { field: 'name_sort', type: String } }
|
options: { criteria: [{ field: 'name_sort', type: String }] }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
name: this.$t('page.artist.sort.release-date'),
|
name: this.$t('page.artist.sort.release-date'),
|
||||||
options: {
|
options: { criteria: [{ field: 'date_released', type: Date }] }
|
||||||
criteria: [{ field: 'date_released', type: Date }],
|
|
||||||
index: { field: 'date_released', type: Date }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
show_details_modal: false
|
show_details_modal: false
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
<list-albums :albums="albums" :hide_group_title="true" />
|
<list-albums :albums="albums" />
|
||||||
<modal-dialog-composer
|
<modal-dialog-composer
|
||||||
:show="show_details_modal"
|
:show="show_details_modal"
|
||||||
:composer="composer"
|
:composer="composer"
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
<p class="title is-4" v-text="$t('page.search.artists')" />
|
<p class="title is-4" v-text="$t('page.search.artists')" />
|
||||||
</template>
|
</template>
|
||||||
<template #content>
|
<template #content>
|
||||||
<list-artists :artists="artists" :hide_group_title="true" />
|
<list-artists :artists="artists" />
|
||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<nav v-if="show_all_button(artists)" class="level">
|
<nav v-if="show_all_button(artists)" class="level">
|
||||||
@ -112,7 +112,7 @@
|
|||||||
<p class="title is-4" v-text="$t('page.search.albums')" />
|
<p class="title is-4" v-text="$t('page.search.albums')" />
|
||||||
</template>
|
</template>
|
||||||
<template #content>
|
<template #content>
|
||||||
<list-albums :albums="albums" :hide_group_title="true" />
|
<list-albums :albums="albums" />
|
||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<nav v-if="show_all_button(albums)" class="level">
|
<nav v-if="show_all_button(albums)" class="level">
|
||||||
|
@ -440,10 +440,7 @@ export default {
|
|||||||
search() {
|
search() {
|
||||||
this.reset()
|
this.reset()
|
||||||
this.search_query = this.query.query?.trim()
|
this.search_query = this.query.query?.trim()
|
||||||
if (
|
if (!this.search_query || this.search_query.startsWith('query:')) {
|
||||||
!this.search_query ||
|
|
||||||
this.search_query.startsWith('query:')
|
|
||||||
) {
|
|
||||||
this.search_query = ''
|
this.search_query = ''
|
||||||
this.$refs.search_field.focus()
|
this.$refs.search_field.focus()
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user