mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: fix showAccessSpecifier
issue after merge commit.
chore: user role validation for create comment editor.
This commit is contained in:
parent
ddd8a0ef86
commit
b8b90032c9
@ -26,7 +26,7 @@ type TIssueCommentCard = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const IssueCommentCard: FC<TIssueCommentCard> = (props) => {
|
export const IssueCommentCard: FC<TIssueCommentCard> = (props) => {
|
||||||
const { workspaceSlug, commentId, activityOperations, ends, showAccessSpecifier = true } = props;
|
const { workspaceSlug, commentId, activityOperations, ends, showAccessSpecifier = false } = props;
|
||||||
// hooks
|
// hooks
|
||||||
const {
|
const {
|
||||||
comment: { getCommentById },
|
comment: { getCommentById },
|
||||||
|
@ -142,13 +142,16 @@ export const IssueActivity: FC<TIssueActivity> = observer((props) => {
|
|||||||
workspaceSlug={workspaceSlug}
|
workspaceSlug={workspaceSlug}
|
||||||
issueId={issueId}
|
issueId={issueId}
|
||||||
activityOperations={activityOperations}
|
activityOperations={activityOperations}
|
||||||
|
showAccessSpecifier={showAccessSpecifier}
|
||||||
/>
|
/>
|
||||||
|
{!disabled && (
|
||||||
<IssueCommentCreate
|
<IssueCommentCreate
|
||||||
workspaceSlug={workspaceSlug}
|
workspaceSlug={workspaceSlug}
|
||||||
activityOperations={activityOperations}
|
activityOperations={activityOperations}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
showAccessSpecifier={showAccessSpecifier}
|
showAccessSpecifier={showAccessSpecifier}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
) : activityTab === "activity" ? (
|
) : activityTab === "activity" ? (
|
||||||
<IssueActivityRoot issueId={issueId} />
|
<IssueActivityRoot issueId={issueId} />
|
||||||
@ -158,13 +161,16 @@ export const IssueActivity: FC<TIssueActivity> = observer((props) => {
|
|||||||
workspaceSlug={workspaceSlug}
|
workspaceSlug={workspaceSlug}
|
||||||
issueId={issueId}
|
issueId={issueId}
|
||||||
activityOperations={activityOperations}
|
activityOperations={activityOperations}
|
||||||
|
showAccessSpecifier={showAccessSpecifier}
|
||||||
/>
|
/>
|
||||||
|
{!disabled && (
|
||||||
<IssueCommentCreate
|
<IssueCommentCreate
|
||||||
workspaceSlug={workspaceSlug}
|
workspaceSlug={workspaceSlug}
|
||||||
activityOperations={activityOperations}
|
activityOperations={activityOperations}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
showAccessSpecifier={showAccessSpecifier}
|
showAccessSpecifier={showAccessSpecifier}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user