Added more and featured tab and total track number in artist tab

This commit is contained in:
RemixDev 2020-08-04 15:11:40 +02:00
parent 1c6141ca5a
commit c1a1829337
4 changed files with 17 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -69,6 +69,7 @@
</i> </i>
</td> </td>
<td>{{ release.release_date }}</td> <td>{{ release.release_date }}</td>
<td>{{ release.nb_song }}</td>
<td <td
@click.stop="addToQueue" @click.stop="addToQueue"
@contextmenu.prevent="openQualityModal" @contextmenu.prevent="openQualityModal"
@ -169,6 +170,7 @@ export default {
this.head = [ this.head = [
{ title: this.$tc('globals.listTabs.title',1), sortKey: 'title' }, { title: this.$tc('globals.listTabs.title',1), sortKey: 'title' },
{ title: this.$t('globals.listTabs.releaseDate'), sortKey: 'release_date' }, { title: this.$t('globals.listTabs.releaseDate'), sortKey: 'release_date' },
{ title: this.$tc('globals.listTabs.track', 2), sortKey: 'nb_song' },
{ title: '', width: '32px' } { title: '', width: '32px' }
] ]
if (isEmpty(releases)) { if (isEmpty(releases)) {
@ -180,7 +182,12 @@ export default {
}, },
computed: { computed: {
showTable() { showTable() {
if (this.body) return orderBy(this.body[this.currentTab], this.sortKey, this.sortOrder) if (this.body){
if (this.sortKey=='nb_song')
return orderBy(this.body[this.currentTab], function (o) { return new Number(o.nb_song); }, this.sortOrder)
else
return orderBy(this.body[this.currentTab], this.sortKey, this.sortOrder)
}
else return [] else return []
} }
}, },

View File

@ -25,6 +25,8 @@ const en = {
playlist: 'playlist | playlists', playlist: 'playlist | playlists',
compile: 'compilation | compilations', compile: 'compilation | compilations',
ep: 'ep | eps', ep: 'ep | eps',
more: 'More albums',
featured: 'Featured in',
spotifyPlaylist: 'spotify playlist | spotify playlists', spotifyPlaylist: 'spotify playlist | spotify playlists',
releaseDate: 'release date', releaseDate: 'release date',
error: 'error' error: 'error'

View File

@ -24,6 +24,8 @@ const it = {
playlist: 'playlist', playlist: 'playlist',
compile: 'compilation', compile: 'compilation',
ep: 'ep', ep: 'ep',
more: 'Altri album',
featured: 'Compare in',
spotifyPlaylist: 'playlist spotify', spotifyPlaylist: 'playlist spotify',
releaseDate: 'data di uscita', releaseDate: 'data di uscita',
error: 'errore', error: 'errore',