chore: archival of modules, cycles and issues enhancement. (#4100)

This commit is contained in:
Prateek Shourya 2024-04-03 18:19:34 +05:30 committed by GitHub
parent 91d85ffed0
commit 4c97098218
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 48 additions and 47 deletions

View file

@ -66,13 +66,8 @@ const ArchivedIssueDetailsPage: NextPageWithLayout = observer(() => {
.then(() => {
setToast({
type: TOAST_TYPE.SUCCESS,
title: "Success",
message:
issue &&
`${getProjectById(issue.project_id)
?.identifier}-${issue?.sequence_id} is restored successfully under the project ${getProjectById(
issue.project_id
)?.name}`,
title: "Restore success",
message: "Your issue can be found in project issues.",
});
router.push(`/${workspaceSlug}/projects/${projectId}/issues/${archivedIssueId}`);
})
@ -80,7 +75,7 @@ const ArchivedIssueDetailsPage: NextPageWithLayout = observer(() => {
setToast({
type: TOAST_TYPE.ERROR,
title: "Error!",
message: "Something went wrong. Please try again.",
message: "Issue could not be restored. Please try again.",
});
})
.finally(() => setIsRestoring(false));