UI - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: каркас вкладки внешние контуры
This commit is contained in:
@@ -10,7 +10,7 @@ import Link from "next/link";
|
||||
import { useParams, usePathname } from "next/navigation";
|
||||
import { EUserPermissionsLevel, EUserPermissions } from "@plane/constants";
|
||||
import { useTranslation } from "@plane/i18n";
|
||||
import { CycleIcon, IntakeIcon, ModuleIcon, PageIcon, ViewsIcon, WorkItemsIcon } from "@plane/propel/icons";
|
||||
import { CycleIcon, IntakeIcon, ModuleIcon, PageIcon, TransferIcon, ViewsIcon, WorkItemsIcon } from "@plane/propel/icons";
|
||||
import type { EUserProjectRoles } from "@plane/types";
|
||||
// plane ui
|
||||
// components
|
||||
@@ -80,6 +80,16 @@ export const ProjectNavigation = observer(function ProjectNavigation(props: TPro
|
||||
shouldRender: true,
|
||||
sortOrder: 1,
|
||||
},
|
||||
{
|
||||
i18n_key: "sidebar.external_contours",
|
||||
key: "external_contours",
|
||||
name: "External contours",
|
||||
href: `/${workspaceSlug}/projects/${projectId}/external-contours`,
|
||||
icon: TransferIcon,
|
||||
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST],
|
||||
shouldRender: true,
|
||||
sortOrder: 2,
|
||||
},
|
||||
{
|
||||
i18n_key: "sidebar.cycles",
|
||||
key: "cycles",
|
||||
@@ -88,7 +98,7 @@ export const ProjectNavigation = observer(function ProjectNavigation(props: TPro
|
||||
icon: CycleIcon,
|
||||
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
|
||||
shouldRender: project?.cycle_view ?? false,
|
||||
sortOrder: 2,
|
||||
sortOrder: 3,
|
||||
},
|
||||
{
|
||||
i18n_key: "sidebar.modules",
|
||||
@@ -98,7 +108,7 @@ export const ProjectNavigation = observer(function ProjectNavigation(props: TPro
|
||||
icon: ModuleIcon,
|
||||
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
|
||||
shouldRender: project?.module_view ?? false,
|
||||
sortOrder: 3,
|
||||
sortOrder: 4,
|
||||
},
|
||||
{
|
||||
i18n_key: "sidebar.views",
|
||||
@@ -108,7 +118,7 @@ export const ProjectNavigation = observer(function ProjectNavigation(props: TPro
|
||||
icon: ViewsIcon,
|
||||
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST],
|
||||
shouldRender: project?.issue_views_view ?? false,
|
||||
sortOrder: 4,
|
||||
sortOrder: 5,
|
||||
},
|
||||
{
|
||||
i18n_key: "sidebar.pages",
|
||||
@@ -118,7 +128,7 @@ export const ProjectNavigation = observer(function ProjectNavigation(props: TPro
|
||||
icon: PageIcon,
|
||||
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST],
|
||||
shouldRender: project?.page_view ?? false,
|
||||
sortOrder: 5,
|
||||
sortOrder: 6,
|
||||
},
|
||||
{
|
||||
i18n_key: "sidebar.intake",
|
||||
@@ -128,7 +138,7 @@ export const ProjectNavigation = observer(function ProjectNavigation(props: TPro
|
||||
icon: IntakeIcon,
|
||||
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST],
|
||||
shouldRender: project?.inbox_view ?? false,
|
||||
sortOrder: 6,
|
||||
sortOrder: 7,
|
||||
},
|
||||
],
|
||||
[project]
|
||||
|
||||
Reference in New Issue
Block a user