chore: inbox issue attachment added (#4190)

This commit is contained in:
Anmol Singh Bhatia 2024-04-15 19:48:50 +05:30 committed by GitHub
parent c670a31836
commit f4c528f535
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import {
IssueActivity, IssueActivity,
IssueReaction, IssueReaction,
TIssueOperations, TIssueOperations,
IssueAttachmentRoot,
} from "@/components/issues"; } from "@/components/issues";
// hooks // hooks
import { useEventTracker, useProjectInbox, useUser } from "@/hooks/store"; import { useEventTracker, useProjectInbox, useUser } from "@/hooks/store";
@ -153,6 +154,12 @@ export const InboxIssueMainContent: React.FC<Props> = observer((props) => {
/> />
)} )}
</div> </div>
<IssueAttachmentRoot
workspaceSlug={workspaceSlug}
projectId={projectId}
issueId={issue.id}
disabled={!isEditable}
/>
<InboxIssueContentProperties <InboxIssueContentProperties
workspaceSlug={workspaceSlug} workspaceSlug={workspaceSlug}

View File

@ -363,6 +363,8 @@ export class ProjectInboxStore implements IProjectInboxStore {
await this.store.issue.issueDetail.fetchActivities(workspaceSlug, projectId, issueId); await this.store.issue.issueDetail.fetchActivities(workspaceSlug, projectId, issueId);
// fetching comments // fetching comments
await this.store.issue.issueDetail.fetchComments(workspaceSlug, projectId, issueId); await this.store.issue.issueDetail.fetchComments(workspaceSlug, projectId, issueId);
// fetching attachments
await this.store.issue.issueDetail.fetchAttachments(workspaceSlug, projectId, issueId);
} }
return inboxIssue; return inboxIssue;
} catch (error) { } catch (error) {