chore: allow guests/ viewers to comment. (#3515)
This commit is contained in:
parent
f0836ceb10
commit
c9d2ea36b8
5 changed files with 15 additions and 25 deletions
|
|
@ -17,7 +17,6 @@ const fileService = new FileService();
|
|||
type TIssueCommentCreate = {
|
||||
workspaceSlug: string;
|
||||
activityOperations: TActivityOperations;
|
||||
disabled: boolean;
|
||||
showAccessSpecifier?: boolean;
|
||||
};
|
||||
|
||||
|
|
@ -40,7 +39,7 @@ const commentAccess: commentAccessType[] = [
|
|||
];
|
||||
|
||||
export const IssueCommentCreate: FC<TIssueCommentCreate> = (props) => {
|
||||
const { workspaceSlug, activityOperations, disabled, showAccessSpecifier = false } = props;
|
||||
const { workspaceSlug, activityOperations, showAccessSpecifier = false } = props;
|
||||
const workspaceStore = useWorkspace();
|
||||
const workspaceId = workspaceStore.getWorkspaceBySlug(workspaceSlug as string)?.id as string;
|
||||
|
||||
|
|
@ -94,7 +93,7 @@ export const IssueCommentCreate: FC<TIssueCommentCreate> = (props) => {
|
|||
}
|
||||
submitButton={
|
||||
<Button
|
||||
disabled={isSubmitting || disabled}
|
||||
disabled={isSubmitting}
|
||||
variant="primary"
|
||||
type="submit"
|
||||
className="!px-2.5 !py-1.5 !text-xs"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue