Added link in error toast message
Added start and finish queueItemGeneration feedback
This commit is contained in:
parent
c1bde5357d
commit
13b5ed627f
File diff suppressed because one or more lines are too long
12
src/app.js
12
src/app.js
@ -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)
|
||||
})
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user