From e6a99888812717118e7b2cc0409fa172c4f1a331 Mon Sep 17 00:00:00 2001 From: Gerard Clos Date: Mon, 23 Sep 2024 14:37:26 +0200 Subject: [PATCH] chore: added modal after publishing draft --- .../_components/Sidebar/PublishDraftCommitModal/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/web/src/app/(private)/projects/[projectId]/versions/[commitUuid]/_components/Sidebar/PublishDraftCommitModal/index.tsx b/apps/web/src/app/(private)/projects/[projectId]/versions/[commitUuid]/_components/Sidebar/PublishDraftCommitModal/index.tsx index 52f3cae67..6e784ca25 100644 --- a/apps/web/src/app/(private)/projects/[projectId]/versions/[commitUuid]/_components/Sidebar/PublishDraftCommitModal/index.tsx +++ b/apps/web/src/app/(private)/projects/[projectId]/versions/[commitUuid]/_components/Sidebar/PublishDraftCommitModal/index.tsx @@ -241,6 +241,12 @@ export default function PublishDraftCommitModal({ const { data, publishDraft, isPublishing } = useCommits({ onSuccessPublish: () => { router.push(ROUTES.projects.detail({ id: project.id }).commits.latest) + + toast({ + title: 'Success', + description: 'Project published successfully.', + }) + onClose(null) }, })