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
|
||||
|
||||
@@ -420,7 +420,7 @@ const sortedAllPackages = computed(() => {
|
||||
})
|
||||
|
||||
const scheduleIntervalHint = computed(() => {
|
||||
const seconds = settings.value['download.schedule_interval'] || 3600
|
||||
const seconds = settings.value['download.schedule_interval'] || 28800
|
||||
if (seconds < 60) return `Check every ${seconds} seconds`
|
||||
if (seconds < 3600) return `Check every ${Math.round(seconds / 60)} minutes`
|
||||
if (seconds < 86400) {
|
||||
|
||||
@@ -190,7 +190,7 @@ const formData = ref({
|
||||
platform: '',
|
||||
url: '',
|
||||
enabled: true,
|
||||
check_interval: 3600,
|
||||
check_interval: 28800,
|
||||
metadata: {},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user