changes to task scheduling and readability change on downloads view
This commit is contained in:
@@ -143,8 +143,8 @@
|
||||
<td style="word-break: break-all">{{ selectedDownload.url }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="font-weight-bold">Source ID</td>
|
||||
<td>{{ selectedDownload.source_id || 'N/A' }}</td>
|
||||
<td class="font-weight-bold">Source</td>
|
||||
<td>{{ getSourceLabel(selectedDownload.source_id) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="font-weight-bold">Files Downloaded</td>
|
||||
@@ -228,7 +228,10 @@ const statusOptions = [
|
||||
]
|
||||
|
||||
const sourceOptions = computed(() =>
|
||||
sourcesStore.sources.map(s => ({ title: s.name, value: s.id }))
|
||||
sourcesStore.sources.map(s => ({
|
||||
title: `${s.subscription_name || 'Unknown'}:${s.platform}`,
|
||||
value: s.id
|
||||
}))
|
||||
)
|
||||
|
||||
const headers = [
|
||||
@@ -308,6 +311,15 @@ function truncateUrl(url) {
|
||||
return url.substring(0, 47) + '...'
|
||||
}
|
||||
|
||||
function getSourceLabel(sourceId) {
|
||||
if (!sourceId) return 'N/A'
|
||||
const source = sourcesStore.sources.find(s => s.id === sourceId)
|
||||
if (source) {
|
||||
return `${source.subscription_name || 'Unknown'}:${source.platform}`
|
||||
}
|
||||
return `Source #${sourceId}`
|
||||
}
|
||||
|
||||
function showDetails(download) {
|
||||
selectedDownload.value = download
|
||||
detailsDialog.value = true
|
||||
|
||||
Reference in New Issue
Block a user