Added translations for known error messages
This commit is contained in:
@@ -193,7 +193,7 @@ export default {
|
||||
},
|
||||
updateQueue(update) {
|
||||
// downloaded and failed default to false?
|
||||
const { uuid, downloaded, failed, progress, error, data } = update
|
||||
const { uuid, downloaded, failed, progress, error, data, errid } = update
|
||||
|
||||
if (uuid && this.queue.indexOf(uuid) > -1) {
|
||||
if (downloaded) {
|
||||
@@ -216,7 +216,7 @@ export default {
|
||||
$('#download_' + uuid + ' .queue_failed').text(this.queueList[uuid].failed)
|
||||
}
|
||||
|
||||
this.queueList[uuid].errors.push({ message: error, data: data })
|
||||
this.queueList[uuid].errors.push({ message: error, data: data, errid: errid })
|
||||
}
|
||||
|
||||
if (progress) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div id="errors_tab" class="main_tabcontent">
|
||||
<h1>{{ $t('errors.title') }} {{ title }}</h1>
|
||||
<table>
|
||||
<h1>{{ $t('errors.title', [title]) }}</h1>
|
||||
<table class="table table--tracklist">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>{{ $tc('globals.listTabs.artist', 1) }}</th>
|
||||
@@ -12,7 +12,7 @@
|
||||
<td>{{ error.data.id }}</td>
|
||||
<td>{{ error.data.artist }}</td>
|
||||
<td>{{ error.data.title }}</td>
|
||||
<td>{{ error.message }}</td>
|
||||
<td>{{ error.errid ? $t(`errors.ids.${error.errid}`) : error.message }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -49,4 +49,4 @@ export default {
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user