mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
a36aa4d093
* fix add subgroup issue FED-1101 * fix subgroup by None assignee FED-1100 * fix grouping by asignee or labels FED-1096 * fix create view popup FED-1093 * fix subgroup exception in swimlanes * fix show sub issue filter FED-1102 * use Enums instead of numbers * fix Estimates setting permission for admin * disable access to project settings for viewers and guests * fix project unautorized flicker * add observer to estimates * add permissions to member list
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
import { ReactElement } from "react";
|
|
// layouts
|
|
import { AppLayout } from "layouts/app-layout";
|
|
import { ProjectSettingLayout } from "layouts/settings-layout";
|
|
// components
|
|
import { ProjectSettingHeader } from "components/headers";
|
|
import { EstimatesList } from "components/estimates";
|
|
// types
|
|
import { NextPageWithLayout } from "types/app";
|
|
import { useMobxStore } from "lib/mobx/store-provider";
|
|
import { EUserWorkspaceRoles } from "constants/workspace";
|
|
import { observer } from "mobx-react-lite";
|
|
|
|
const EstimatesSettingsPage: NextPageWithLayout = observer(() => {
|
|
const {
|
|
user: { currentProjectRole },
|
|
} = useMobxStore();
|
|
|
|
const isAdmin = currentProjectRole === EUserWorkspaceRoles.ADMIN;
|
|
|
|
return (
|
|
<div className={`pr-9 py-8 w-full overflow-y-auto ${isAdmin ? "" : "opacity-60 pointer-events-none"}`}>
|
|
<EstimatesList />
|
|
</div>
|
|
);
|
|
});
|
|
|
|
EstimatesSettingsPage.getLayout = function getLayout(page: ReactElement) {
|
|
return (
|
|
<AppLayout header={<ProjectSettingHeader title="Estimates Settings" />} withProjectWrapper>
|
|
<ProjectSettingLayout>{page}</ProjectSettingLayout>
|
|
</AppLayout>
|
|
);
|
|
};
|
|
|
|
export default EstimatesSettingsPage;
|