forked from github/plane
[WEB-849] fix: issue detail identifier and workspace settings (#4073)
* fix: issue detail identifier * fix: workspace settings user role validation
This commit is contained in:
parent
30cee78170
commit
9249e6d5b9
@ -1,4 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
import { observer } from "mobx-react";
|
||||||
import { RefreshCw } from "lucide-react";
|
import { RefreshCw } from "lucide-react";
|
||||||
import { TIssue } from "@plane/types";
|
import { TIssue } from "@plane/types";
|
||||||
// types
|
// types
|
||||||
@ -9,7 +10,7 @@ type Props = {
|
|||||||
issueDetail?: TIssue;
|
issueDetail?: TIssue;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const IssueUpdateStatus: React.FC<Props> = (props) => {
|
export const IssueUpdateStatus: React.FC<Props> = observer((props) => {
|
||||||
const { isSubmitting, issueDetail } = props;
|
const { isSubmitting, issueDetail } = props;
|
||||||
// hooks
|
// hooks
|
||||||
const { getProjectById } = useProject();
|
const { getProjectById } = useProject();
|
||||||
@ -33,4 +34,4 @@ export const IssueUpdateStatus: React.FC<Props> = (props) => {
|
|||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
});
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
import { observer } from "mobx-react";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
// hooks
|
// hooks
|
||||||
@ -6,7 +7,7 @@ import { EUserWorkspaceRoles, WORKSPACE_SETTINGS_LINKS } from "@/constants/works
|
|||||||
import { useUser } from "@/hooks/store";
|
import { useUser } from "@/hooks/store";
|
||||||
// constants
|
// constants
|
||||||
|
|
||||||
export const WorkspaceSettingsSidebar = () => {
|
export const WorkspaceSettingsSidebar = observer(() => {
|
||||||
// router
|
// router
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { workspaceSlug } = router.query;
|
const { workspaceSlug } = router.query;
|
||||||
@ -44,4 +45,4 @@ export const WorkspaceSettingsSidebar = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user