[WEB-5124] chore: intake work item toast enhancements (#8329)
This commit is contained in:
parent
192ed9ba8d
commit
1b427392c4
3 changed files with 11 additions and 0 deletions
|
|
@ -241,6 +241,7 @@ export const InboxIssueActionsHeader = observer(function InboxIssueActionsHeader
|
|||
beforeFormSubmit={handleInboxIssueAccept}
|
||||
withDraftIssueWrapper={false}
|
||||
fetchIssueDetails={false}
|
||||
showActionItemsOnUpdate
|
||||
modalTitle={t("inbox_issue.actions.move", {
|
||||
value: `${currentProjectDetails?.identifier}-${issue?.sequence_id}`,
|
||||
})}
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ export const CreateUpdateIssueModalBase = observer(function CreateUpdateIssueMod
|
|||
modalTitle,
|
||||
primaryButtonText,
|
||||
isProjectSelectionDisabled = false,
|
||||
showActionItemsOnUpdate = false,
|
||||
} = props;
|
||||
const issueStoreType = useIssueStoreType();
|
||||
|
||||
|
|
@ -318,6 +319,14 @@ export const CreateUpdateIssueModalBase = observer(function CreateUpdateIssueMod
|
|||
type: TOAST_TYPE.SUCCESS,
|
||||
title: t("success"),
|
||||
message: t("issue_updated_successfully"),
|
||||
actionItems:
|
||||
showActionItemsOnUpdate && payload.project_id ? (
|
||||
<CreateIssueToastActionItems
|
||||
workspaceSlug={workspaceSlug.toString()}
|
||||
projectId={payload.project_id}
|
||||
issueId={data.id}
|
||||
/>
|
||||
) : undefined,
|
||||
});
|
||||
captureSuccess({
|
||||
eventName: WORK_ITEM_TRACKER_EVENTS.update,
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ export interface IssuesModalProps {
|
|||
isProjectSelectionDisabled?: boolean;
|
||||
templateId?: string;
|
||||
allowedProjectIds?: string[];
|
||||
showActionItemsOnUpdate?: boolean;
|
||||
}
|
||||
|
||||
export const CreateUpdateIssueModal = observer(function CreateUpdateIssueModal(props: IssuesModalProps) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue