Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion apps/web/core/components/inbox/content/inbox-issue-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const InboxIssueActionsHeader = observer(function InboxIssueActionsHeader
const [declineIssueModal, setDeclineIssueModal] = useState(false);
const [deleteIssueModal, setDeleteIssueModal] = useState(false);
// store
const { currentTab, deleteInboxIssue, filteredInboxIssueIds } = useProjectInbox();
const { currentTab, deleteInboxIssue, filteredInboxIssueIds, fetchInboxIssues } = useProjectInbox();
const { data: currentUser } = useUser();
const { allowPermissions } = useUserPermissions();
const { currentProjectDetails } = useProject();
Expand Down Expand Up @@ -119,13 +119,23 @@ export const InboxIssueActionsHeader = observer(function InboxIssueActionsHeader
const handleInboxIssueAccept = async () => {
const nextOrPreviousIssueId = redirectIssue();
await inboxIssue?.updateInboxIssueStatus(EInboxIssueStatus.ACCEPTED);
try {
await fetchInboxIssues(workspaceSlug, projectId, "filter-loading");
} catch (error) {
console.error("Failed to refresh inbox issues:", error);
}
setAcceptIssueModal(false);
handleRedirection(nextOrPreviousIssueId);
};
Comment thread
coderabbitai[bot] marked this conversation as resolved.

const handleInboxIssueDecline = async () => {
const nextOrPreviousIssueId = redirectIssue();
await inboxIssue?.updateInboxIssueStatus(EInboxIssueStatus.DECLINED);
try {
await fetchInboxIssues(workspaceSlug, projectId, "filter-loading");
} catch (error) {
console.error("Failed to refresh inbox issues:", error);
}
setDeclineIssueModal(false);
handleRedirection(nextOrPreviousIssueId);
};
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Expand All @@ -139,6 +149,11 @@ export const InboxIssueActionsHeader = observer(function InboxIssueActionsHeader

const handleInboxIssueDuplicate = async (issueId: string) => {
await inboxIssue?.updateInboxIssueDuplicateTo(issueId);
try {
await fetchInboxIssues(workspaceSlug, projectId, "filter-loading");
} catch (error) {
console.error("Failed to refresh inbox issues:", error);
}
Comment thread
a-faqahmad marked this conversation as resolved.
};
Comment thread
coderabbitai[bot] marked this conversation as resolved.

const handleInboxIssueDelete = async () => {
Expand Down