Merge branch 'preview' of github.com:makeplane/plane into develop

This commit is contained in:
sriram veeraghanta 2024-04-11 20:27:44 +05:30
commit 8b6035d315

View File

@ -54,7 +54,7 @@ export const InboxIssueActionsHeader: FC<TInboxIssueActionsHeader> = observer((p
const canMarkAsAccepted = isAllowed && (inboxIssue?.status === 0 || inboxIssue?.status === -2); const canMarkAsAccepted = isAllowed && (inboxIssue?.status === 0 || inboxIssue?.status === -2);
const canMarkAsDeclined = isAllowed && inboxIssue?.status === -2; const canMarkAsDeclined = isAllowed && inboxIssue?.status === -2;
const canDelete = isAllowed || inboxIssue?.created_by === currentUser?.id; const canDelete = isAllowed || inboxIssue?.created_by === currentUser?.id;
const isCompleted = inboxIssue?.status === 1; const isAcceptedOrDeclined = inboxIssue?.status ? [-1, 1].includes(inboxIssue.status) : undefined;
const currentInboxIssueId = inboxIssue?.issue?.id; const currentInboxIssueId = inboxIssue?.issue?.id;
@ -220,7 +220,7 @@ export const InboxIssueActionsHeader: FC<TInboxIssueActionsHeader> = observer((p
</div> </div>
)} )}
{isCompleted ? ( {isAcceptedOrDeclined ? (
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<Button <Button
variant="neutral-primary" variant="neutral-primary"