chore: fix showAccessSpecifier issue after merge commit.

chore: user role validation for create comment editor.
This commit is contained in:
Prateek Shourya 2024-01-22 16:27:18 +05:30
parent ddd8a0ef86
commit b8b90032c9
2 changed files with 17 additions and 11 deletions

View File

@ -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 },

View File

@ -142,13 +142,16 @@ export const IssueActivity: FC<TIssueActivity> = observer((props) => {
workspaceSlug={workspaceSlug} workspaceSlug={workspaceSlug}
issueId={issueId} issueId={issueId}
activityOperations={activityOperations} activityOperations={activityOperations}
/>
<IssueCommentCreate
workspaceSlug={workspaceSlug}
activityOperations={activityOperations}
disabled={disabled}
showAccessSpecifier={showAccessSpecifier} showAccessSpecifier={showAccessSpecifier}
/> />
{!disabled && (
<IssueCommentCreate
workspaceSlug={workspaceSlug}
activityOperations={activityOperations}
disabled={disabled}
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}
/>
<IssueCommentCreate
workspaceSlug={workspaceSlug}
activityOperations={activityOperations}
disabled={disabled}
showAccessSpecifier={showAccessSpecifier} showAccessSpecifier={showAccessSpecifier}
/> />
{!disabled && (
<IssueCommentCreate
workspaceSlug={workspaceSlug}
activityOperations={activityOperations}
disabled={disabled}
showAccessSpecifier={showAccessSpecifier}
/>
)}
</div> </div>
)} )}
</div> </div>