fix: issue archive improvement, chore: code refactor (#1520)

* style: select month modal

* chore: automation setting dropdown updated ,style: month dropdown styling

* chore: restore issue alert message updated

* chore: archive issue fetching updated and code refactor

* fix: build fix
This commit is contained in:
Anmol Singh Bhatia 2023-07-13 17:04:24 +05:30 committed by GitHub
parent a829e6fc40
commit 3f3fb373cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 53 additions and 53 deletions

View file

@ -118,12 +118,12 @@ const ArchivedIssueDetailsPage: NextPage = () => {
if (!workspaceSlug || !projectId || !archivedIssueId) return;
await issuesService
.unArchivedIssue(workspaceSlug as string, projectId as string, archivedIssueId as string)
.unarchiveIssue(workspaceSlug as string, projectId as string, archivedIssueId as string)
.then(() => {
setToastAlert({
type: "success",
title: "Success!",
message: "Issue restored successfully.",
title: "Success",
message: `${issueDetails?.project_detail?.identifier}-${issueDetails?.sequence_id} is restored successfully under the project ${issueDetails?.project_detail?.name}`,
});
router.push(`/${workspaceSlug}/projects/${projectId}/issues/${archivedIssueId}`);
})
@ -174,7 +174,7 @@ const ArchivedIssueDetailsPage: NextPage = () => {
<IssueMainContent
issueDetails={issueDetails}
submitChanges={submitChanges}
nonEditable
uneditable
/>
</div>
</div>
@ -184,7 +184,7 @@ const ArchivedIssueDetailsPage: NextPage = () => {
issueDetail={issueDetails}
submitChanges={submitChanges}
watch={watch}
nonEditable
uneditable
/>
</div>
</div>