Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

chore: inbox issue attachment added (#4190)

Anmol Singh Bhatiaf4c528f53599
diff --git a/web/components/inbox/content/issue-root.tsx b/web/components/inbox/content/issue-root.tsx
index 87ca066aaf..545e96677b 100644
--- a/web/components/inbox/content/issue-root.tsx
+++ b/web/components/inbox/content/issue-root.tsx
@@ -11,6 +11,7 @@ import {
IssueActivity,
IssueReaction,
TIssueOperations,
+ IssueAttachmentRoot,
} from "@/components/issues";
// hooks
import { useEventTracker, useProjectInbox, useUser } from "@/hooks/store";
@@ -153,6 +154,12 @@ export const InboxIssueMainContent: React.FC<Props> = observer((props) => {
/>
)}
</div>
+ <IssueAttachmentRoot
+ workspaceSlug={workspaceSlug}
+ projectId={projectId}
+ issueId={issue.id}
+ disabled={!isEditable}
+ />
<InboxIssueContentProperties
workspaceSlug={workspaceSlug}
diff --git a/web/store/inbox/project-inbox.store.ts b/web/store/inbox/project-inbox.store.ts
index 1ecf9a0331..a5f8ab0bd1 100644
--- a/web/store/inbox/project-inbox.store.ts
+++ b/web/store/inbox/project-inbox.store.ts
@@ -363,6 +363,8 @@ export class ProjectInboxStore implements IProjectInboxStore {
await this.store.issue.issueDetail.fetchActivities(workspaceSlug, projectId, issueId);
// fetching comments
await this.store.issue.issueDetail.fetchComments(workspaceSlug, projectId, issueId);
+ // fetching attachments
+ await this.store.issue.issueDetail.fetchAttachments(workspaceSlug, projectId, issueId);
}
return inboxIssue;
} catch (error) {