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>
</td>
<td>{{ release.release_date }}</td>
<td>{{ release.nb_song }}</td>
<td
@click.stop="addToQueue"
@contextmenu.prevent="openQualityModal"
@ -169,6 +170,7 @@ export default {
this.head = [
{ title: this.$tc('globals.listTabs.title',1), sortKey: 'title' },
{ title: this.$t('globals.listTabs.releaseDate'), sortKey: 'release_date' },
{ title: this.$tc('globals.listTabs.track', 2), sortKey: 'nb_song' },
{ title: '', width: '32px' }
]
if (isEmpty(releases)) {
@ -180,7 +182,12 @@ export default {
},
computed: {
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 []
}
},

View File

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

View File

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