feat: create and delete issue alerts

This commit is contained in:
anmolsinghbhatia 2023-04-28 13:27:34 +05:30
parent 937d04e88c
commit 1b06b21087
2 changed files with 4 additions and 4 deletions

View File

@ -65,9 +65,9 @@ export const DeleteIssueModal: React.FC<Props> = ({ isOpen, handleClose, data })
handleClose();
setToastAlert({
title: "Success",
title: "Issue Deleted Successfully",
type: "success",
message: "Issue deleted successfully",
message: `${data.project_detail.identifier}-${data.sequence_id} is deleted successfully from the project ${data.project_detail.name}`,
});
})
.catch((error) => {

View File

@ -138,8 +138,8 @@ export const CreateUpdateIssueModal: React.FC<IssuesModalProps> = ({
setToastAlert({
type: "success",
title: "Success!",
message: "Issue created successfully.",
title: "Issue Created Successfully",
message: `${res.project_detail.identifier}-${res.sequence_id} is created successfully under the project ${res.project_detail.name}`,
});
if (payload.assignees_list?.some((assignee) => assignee === user?.id)) mutate(USER_ISSUE);