Added link in error toast message

Added start and finish queueItemGeneration feedback
This commit is contained in:
RemixDev 2020-10-14 23:29:24 +02:00
parent c1bde5357d
commit 13b5ed627f
4 changed files with 21 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@ -175,9 +175,9 @@ socket.on('errorMessage', function(error) {
socket.on('queueError', function(queueItem) {
if (queueItem.errid) {
toast(i18n.t(`errors.ids.${queueItem.errid}`), 'error')
toast(queueItem.link+ " - " +i18n.t(`errors.ids.${queueItem.errid}`), 'error')
} else {
toast(queueItem.error, 'error')
toast(queueItem.link+ " - " +queueItem.error, 'error')
}
})
@ -188,3 +188,11 @@ socket.on('alreadyInQueue', function(data) {
socket.on('loginNeededToDownload', function(data) {
toast(i18n.t('toasts.loginNeededToDownload'), 'report')
})
socket.on('startGeneratingItems', function(data) {
toast(i18n.t('toasts.startGeneratingItems', { n: data.total }), 'loading', false, 'batch_' + data.uuid)
})
socket.on('finishGeneratingItems', function(data) {
toast(i18n.t('toasts.finishGeneratingItems', { n: data.total }), 'done', true, 'batch_' + data.uuid)
})

View File

@ -180,7 +180,9 @@ const en = {
startConvertingSpotifyPlaylist: 'Converting spotify tracks to Deezer tracks',
finishConvertingSpotifyPlaylist: 'Spotify playlist converted',
loginNeededToDownload: 'You need to log in to download tracks!',
deezerNotAvailable: 'Deezer is not available in your country. You should use a VPN.'
deezerNotAvailable: 'Deezer is not available in your country. You should use a VPN.',
startGeneratingItems: 'Processing {n} items...',
finishGeneratingItems: 'Generated {n} items.'
},
settings: {
title: 'Settings',

View File

@ -184,7 +184,9 @@ const it = {
startConvertingSpotifyPlaylist: 'Convertendo i brani da spotify a deezer',
finishConvertingSpotifyPlaylist: 'Playlist di spotify convertita',
loginNeededToDownload: 'Devi accedere prima di poter scaricare brani!',
deezerNotAvailable: 'Deezer non è disponibile nel tuo paese. Dovresti usare una VPN.'
deezerNotAvailable: 'Deezer non è disponibile nel tuo paese. Dovresti usare una VPN.',
startGeneratingItems: 'Elaborando {n} oggetti...',
finishGeneratingItems: '{n} oggetti generati.'
},
settings: {
title: 'Impostazioni',