Files
rustfs-console/components/object/task/list.vue
T
overtrue 93cb42fefa refactor: unify upload and delete task management
- Consolidate separate upload and delete task managers into a unified TaskManager
- Create shared task UI components (stats, panel, list, item) under components/object/task/
- Remove unused compatibility layer stores (useDeleteTaskManagerStore, useUploadTaskManagerStore)
- Fix status name inconsistencies in task stores
- Remove unused processing-status prop from object-task-stats component

This refactoring reduces code duplication by ~1000 lines and provides a more maintainable
architecture for task management across upload and delete operations.
2025-11-29 23:41:58 +08:00

17 lines
481 B
Vue

<template>
<div class="flex flex-col gap-3">
<EmptyState v-if="tasks.length <= 0" :title="t('No Tasks')" class="py-6" />
<ObjectTaskItem v-for="task in tasks" :key="task.id" :task="task" />
</div>
</template>
<script setup lang="ts">
import EmptyState from '@/components/empty-state.vue'
import ObjectTaskItem from '~/components/object/task/item.vue'
import type { AnyTask } from '~/store/tasks'
const { t } = useI18n()
defineProps<{ tasks: AnyTask[] }>()
</script>