mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-07-17 10:31:57 +08:00
Fix dashboard task status and recent imports count
This commit is contained in:
@@ -49,7 +49,7 @@ const backgroundTasks = computed<BackgroundTaskItem[]>(() => {
|
||||
id: `schedule-${item.id}`,
|
||||
title: item.name || t('dashboard.scheduler'),
|
||||
subtitle: (isRunning && getScheduleProgressText(item)) || item.provider || item.next_run || '',
|
||||
status: item.status || t('dashboard.taskWaiting'),
|
||||
status: isRunning ? t('dashboard.taskRunning') : item.status || t('dashboard.taskWaiting'),
|
||||
icon: visual.icon,
|
||||
color: visual.color,
|
||||
progress: isRunning ? getScheduleProgressValue(item) : undefined,
|
||||
|
||||
@@ -14,7 +14,7 @@ const recentImports = ref<TransferHistory[]>([])
|
||||
async function loadRecentImports() {
|
||||
try {
|
||||
const response: { data?: { list?: TransferHistory[] } } = await api.get('history/transfer', {
|
||||
params: { page: 1, count: 4, status: true },
|
||||
params: { page: 1, count: 5, status: true },
|
||||
})
|
||||
recentImports.value = response.data?.list ?? []
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user