feat: duplicate page in same space (#1394)

* fix internal links in copies pages

* feat: duplicate page in same space

* fix children
This commit is contained in:
Philip Okugbe
2025-07-21 21:39:57 +01:00
committed by GitHub
parent f8dc9845a7
commit 8522844673
8 changed files with 214 additions and 43 deletions
@@ -1,5 +1,5 @@
import { Modal, Button, Group, Text } from "@mantine/core";
import { copyPageToSpace } from "@/features/page/services/page-service.ts";
import { duplicatePage } from "@/features/page/services/page-service.ts";
import { useState } from "react";
import { notifications } from "@mantine/notifications";
import { useTranslation } from "react-i18next";
@@ -30,7 +30,7 @@ export default function CopyPageModal({
if (!targetSpace) return;
try {
const copiedPage = await copyPageToSpace({
const copiedPage = await duplicatePage({
pageId,
spaceId: targetSpace.id,
});