forked from github/plane
[WEB-943] chore: inbox cancelled issue header action improvement (#4172)
* chore: inbox cancelled issue header action improvement * chore: code refactor
This commit is contained in:
parent
9e3fedd0df
commit
b0ab17021f
@ -54,7 +54,7 @@ export const InboxIssueActionsHeader: FC<TInboxIssueActionsHeader> = observer((p
|
||||
const canMarkAsAccepted = isAllowed && (inboxIssue?.status === 0 || inboxIssue?.status === -2);
|
||||
const canMarkAsDeclined = isAllowed && inboxIssue?.status === -2;
|
||||
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;
|
||||
|
||||
@ -220,7 +220,7 @@ export const InboxIssueActionsHeader: FC<TInboxIssueActionsHeader> = observer((p
|
||||
</div>
|
||||
)}
|
||||
|
||||
{isCompleted ? (
|
||||
{isAcceptedOrDeclined ? (
|
||||
<div className="flex items-center gap-2">
|
||||
<Button
|
||||
variant="neutral-primary"
|
||||
|
Loading…
Reference in New Issue
Block a user