mirror of
https://github.com/rustfs/console.git
synced 2026-11-03 06:33:31 +08:00
- 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.
17 lines
481 B
Vue
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>
|