forked from github/plane
chore: inbox issue attachment added (#4190)
This commit is contained in:
parent
c670a31836
commit
f4c528f535
@ -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}
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user