Removed thingsArticle and switched to number of things to add to queue
This commit is contained in:
parent
1182efd2dd
commit
99c2d0be0f
File diff suppressed because one or more lines are too long
@ -26,7 +26,9 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<button class="btn btn-primary" v-if="!activeTabEmpty" style="margin-bottom: 2rem" @click="downloadAllOfType">
|
<button class="btn btn-primary" v-if="!activeTabEmpty" style="margin-bottom: 2rem" @click="downloadAllOfType">
|
||||||
{{ $t('globals.downloadAll', { things: $tc(`globals.listTabs.${activeTab}`, 2), thingsArticle: $tc(`globals.listTabsArticle.${activeTab}`, 2) }) }}
|
{{
|
||||||
|
$t('globals.download', { thing: $tc(`globals.listTabs.${activeTab}N`, getTabLenght() )})
|
||||||
|
}}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div class="favorites_tabcontent" :class="{ 'favorites_tabcontent--active': activeTab === 'playlist' }">
|
<div class="favorites_tabcontent" :class="{ 'favorites_tabcontent--active': activeTab === 'playlist' }">
|
||||||
@ -387,6 +389,12 @@ export default {
|
|||||||
|
|
||||||
return toDownload
|
return toDownload
|
||||||
},
|
},
|
||||||
|
getTabLenght(tab = this.activeTab) {
|
||||||
|
let total = this[`${tab}s`].length
|
||||||
|
// TODO: Add Spotify playlists to downlaod queue as well
|
||||||
|
//if (tab === "playlist") total += this.spotifyPlaylists.length
|
||||||
|
return total
|
||||||
|
},
|
||||||
getLovedTracksPlaylist() {
|
getLovedTracksPlaylist() {
|
||||||
let lovedTracks = this.playlists.filter(playlist => {
|
let lovedTracks = this.playlists.filter(playlist => {
|
||||||
return playlist.is_loved_track
|
return playlist.is_loved_track
|
||||||
|
@ -4,7 +4,6 @@ const en = {
|
|||||||
back: 'back',
|
back: 'back',
|
||||||
loading: 'loading',
|
loading: 'loading',
|
||||||
download: 'Download {thing}',
|
download: 'Download {thing}',
|
||||||
downloadAll: 'Download all {things}',
|
|
||||||
by: 'by {artist}',
|
by: 'by {artist}',
|
||||||
in: 'in {album}',
|
in: 'in {album}',
|
||||||
download_hint: 'Download',
|
download_hint: 'Download',
|
||||||
@ -28,7 +27,6 @@ const en = {
|
|||||||
single: 'single | singles',
|
single: 'single | singles',
|
||||||
title: 'title | titles',
|
title: 'title | titles',
|
||||||
track: 'track | tracks',
|
track: 'track | tracks',
|
||||||
trackN: '0 tracks | {n} track | {n} tracks',
|
|
||||||
releaseN: '0 releases | {n} release | {n} releases',
|
releaseN: '0 releases | {n} release | {n} releases',
|
||||||
playlist: 'playlist | playlists',
|
playlist: 'playlist | playlists',
|
||||||
compile: 'compilation | compilations',
|
compile: 'compilation | compilations',
|
||||||
@ -38,13 +36,11 @@ const en = {
|
|||||||
featured: 'Featured in',
|
featured: 'Featured in',
|
||||||
spotifyPlaylist: 'spotify playlist | spotify playlists',
|
spotifyPlaylist: 'spotify playlist | spotify playlists',
|
||||||
releaseDate: 'release date',
|
releaseDate: 'release date',
|
||||||
error: 'error'
|
error: 'error',
|
||||||
},
|
trackN: '0 tracks | {n} track | {n} tracks',
|
||||||
listTabsArticle:{
|
albumN: '0 albums | {n} album | {n} albums',
|
||||||
playlist: 'the playlist | the playlists',
|
artistN: '0 artists | {n} artist | {n} artists',
|
||||||
album: 'the album | the albums',
|
playlistN: '0 playlists | {n} playlist | {n} playlists',
|
||||||
artist: 'the artist | the artists',
|
|
||||||
track: 'the track | the tracks',
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
about: {
|
about: {
|
||||||
|
@ -4,7 +4,6 @@ const fr = {
|
|||||||
back: 'retour',
|
back: 'retour',
|
||||||
loading: 'chargement en cours',
|
loading: 'chargement en cours',
|
||||||
download: 'Télécharger {thing}',
|
download: 'Télécharger {thing}',
|
||||||
downloadAll: "Télécharger l'intégralité des {things}",
|
|
||||||
by: 'par {artist}',
|
by: 'par {artist}',
|
||||||
in: 'dans {album}',
|
in: 'dans {album}',
|
||||||
download_hint: 'Télécharger',
|
download_hint: 'Télécharger',
|
||||||
|
@ -4,7 +4,6 @@ const it = {
|
|||||||
back: 'indietro',
|
back: 'indietro',
|
||||||
loading: 'caricamento',
|
loading: 'caricamento',
|
||||||
download: 'Scarica {thing}',
|
download: 'Scarica {thing}',
|
||||||
downloadAll: 'Scarica tutti {thingsArticle}',
|
|
||||||
by: 'di {artist}',
|
by: 'di {artist}',
|
||||||
in: 'in {album}',
|
in: 'in {album}',
|
||||||
download_hint: 'Scarica',
|
download_hint: 'Scarica',
|
||||||
@ -27,7 +26,6 @@ const it = {
|
|||||||
single: 'singolo | singoli',
|
single: 'singolo | singoli',
|
||||||
title: 'titolo | titoli',
|
title: 'titolo | titoli',
|
||||||
track: 'brano | brani',
|
track: 'brano | brani',
|
||||||
trackN: '0 brani | {n} brano | {n} brani',
|
|
||||||
releaseN: '0 dischi | {n} disco | {n} dischi',
|
releaseN: '0 dischi | {n} disco | {n} dischi',
|
||||||
playlist: 'playlist',
|
playlist: 'playlist',
|
||||||
compile: 'compilation',
|
compile: 'compilation',
|
||||||
@ -38,13 +36,11 @@ const it = {
|
|||||||
spotifyPlaylist: 'playlist spotify',
|
spotifyPlaylist: 'playlist spotify',
|
||||||
releaseDate: 'data di uscita',
|
releaseDate: 'data di uscita',
|
||||||
error: 'errore',
|
error: 'errore',
|
||||||
empty: ''
|
empty: '',
|
||||||
},
|
trackN: '0 brani | {n} brano | {n} brani',
|
||||||
listTabsArticle:{
|
albumN: '{n} album',
|
||||||
playlist: 'la playlist | le playlist',
|
artistN: '0 artisti | {n} artista | {n} artisti',
|
||||||
album: `l'album | gli album`,
|
playlistN: '{n} playlist',
|
||||||
artist: `l'artista | gli artisti`,
|
|
||||||
track: 'il brano | i brani',
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
about: {
|
about: {
|
||||||
|
Loading…
Reference in New Issue
Block a user