Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/pages/manage/sidemenu_items.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ export const side_menu_items: SideMenuItem[] = [
icon: OcWorkflow2,
to: "/@manage/tasks",
role: UserRole.GENERAL,
backend: ["go"],
// ts-worker 后端已实现 copy / move / offline_download 三类任务的
// 执行器与 /api/task/* 接口,因此任务页对其开放;尚未实现的类型
// (upload / decompress / seed)在子项上单独限制为 go。
backend: ["go", "ts-worker"],
children: [
{
title: "manage.sidemenu.offline_download",
Expand All @@ -155,6 +158,7 @@ export const side_menu_items: SideMenuItem[] = [
icon: BsCloudUploadFill,
to: "/@manage/tasks/upload",
role: UserRole.GENERAL,
backend: ["go"],
component: lazy(() => import("./tasks/Upload")),
},
{
Expand All @@ -176,13 +180,15 @@ export const side_menu_items: SideMenuItem[] = [
icon: TbArchive,
to: "/@manage/tasks/decompress",
role: UserRole.GENERAL,
backend: ["go"],
component: lazy(() => import("./tasks/Decompress")),
},
{
title: "manage.sidemenu.seed_tasks",
icon: TbHash,
to: "/@manage/tasks/seed",
role: UserRole.GENERAL,
backend: ["go"],
component: lazy(() => import("./tasks/Seed")),
},
],
Expand Down
Loading