Added toast message for deezerNotAvailable
This commit is contained in:
parent
2d505f5fee
commit
291917e9b2
File diff suppressed because one or more lines are too long
@ -140,6 +140,13 @@ socket.on('logged_in', function(data) {
|
||||
$('#settings_picture').attr('src', `https://e-cdns-images.dzcdn.net/images/user/125x125-000000-80-0-0.jpg`)
|
||||
document.getElementById('home_not_logged_in').classList.remove('hide')
|
||||
break
|
||||
case -1:
|
||||
toast(i18n.t('toasts.deezerNotAvailable'), 'close', true, 'login-toast')
|
||||
$('#open_login_prompt').show()
|
||||
document.getElementById('logged_in_info').classList.add('hide')
|
||||
$('#settings_username').text('Not Logged')
|
||||
$('#settings_picture').attr('src', `https://e-cdns-images.dzcdn.net/images/user/125x125-000000-80-0-0.jpg`)
|
||||
document.getElementById('home_not_logged_in').classList.remove('hide')
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -175,7 +175,8 @@ const en = {
|
||||
finishAddingArtist: 'Added {artist} albums to queue',
|
||||
startConvertingSpotifyPlaylist: 'Converting spotify tracks to Deezer tracks',
|
||||
finishConvertingSpotifyPlaylist: 'Spotify playlist converted',
|
||||
loginNeededToDownload: 'You need to log in to download tracks!'
|
||||
loginNeededToDownload: 'You need to log in to download tracks!',
|
||||
deezerNotAvailable: 'Deezer is not available in your country. You should use a VPN.'
|
||||
},
|
||||
settings: {
|
||||
title: 'Settings',
|
||||
|
@ -181,7 +181,8 @@ const it = {
|
||||
finishAddingArtist: 'Aggiunto gli album di {artist} alla coda',
|
||||
startConvertingSpotifyPlaylist: 'Convertendo i brani da spotify a deezer',
|
||||
finishConvertingSpotifyPlaylist: 'Playlist di spotify convertita',
|
||||
loginNeededToDownload: 'Devi accedere prima di poter scaricare brani!'
|
||||
loginNeededToDownload: 'Devi accedere prima di poter scaricare brani!',
|
||||
deezerNotAvailable: 'Deezer non è disponibile nel tuo paese. Dovresti usare una VPN.'
|
||||
},
|
||||
settings: {
|
||||
title: 'Impostazioni',
|
||||
|
Loading…
Reference in New Issue
Block a user