mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 22:09:12 +02:00
* fix: lint errors across enterprise repo. * fix: lint errors in seats banner. * fix: build error in auto close automation. * fix: more lint errors
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
// plane types
|
|
import { EUserPermissions } from "@plane/types/src/enums";
|
|
// ce constants
|
|
import { PROJECT_SETTINGS as PROJECT_SETTINGS_CE } from "@/ce/constants/project";
|
|
// icons
|
|
import { SettingIcon } from "@/components/icons/attachment";
|
|
// components
|
|
import { Props } from "@/components/icons/types";
|
|
|
|
export const PROJECT_SETTINGS = {
|
|
...PROJECT_SETTINGS_CE,
|
|
"issue-types": {
|
|
key: "issue-types",
|
|
label: "Issue Types",
|
|
href: `/settings/issue-types/`,
|
|
access: [EUserPermissions.ADMIN],
|
|
highlight: (pathname: string, baseUrl: string) => pathname === `${baseUrl}/settings/issue-types/`,
|
|
Icon: SettingIcon,
|
|
},
|
|
};
|
|
|
|
export const PROJECT_SETTINGS_LINKS: {
|
|
key: string;
|
|
label: string;
|
|
href: string;
|
|
access: EUserPermissions[];
|
|
highlight: (pathname: string, baseUrl: string) => boolean;
|
|
Icon: React.FC<Props>;
|
|
}[] = [
|
|
PROJECT_SETTINGS["general"],
|
|
PROJECT_SETTINGS["members"],
|
|
PROJECT_SETTINGS["features"],
|
|
PROJECT_SETTINGS["states"],
|
|
PROJECT_SETTINGS["labels"],
|
|
PROJECT_SETTINGS["estimates"],
|
|
PROJECT_SETTINGS["automations"],
|
|
PROJECT_SETTINGS["issue-types"],
|
|
];
|