diff --git a/messages/en-US.json b/messages/en-US.json index 44668c5d..6ba164f3 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -47,9 +47,8 @@ "edit": "Edit", "siteConfirmDelete": "Confirm Delete Site", "siteDelete": "Delete Site", - "siteMessageRemove": "Once removed, the site will no longer be accessible. All resources and targets associated with the site will also be removed.", - "siteMessageConfirm": "To confirm, please type the name of the site below.", - "siteQuestionRemove": "Are you sure you want to remove the site {selectedSite} from the organization?", + "siteMessageRemove": "Once removed the site will no longer be accessible. All targets associated with the site will also be removed.", + "siteQuestionRemove": "Are you sure you want to remove the site from the organization?", "siteManageSites": "Manage Sites", "siteDescription": "Allow connectivity to your network through secure tunnels", "siteCreate": "Create Site", @@ -1894,5 +1893,7 @@ "pathRewriteRegex": "Regex", "pathRewriteStrip": "Strip", "pathRewriteStripLabel": "strip", - "sidebarEnableEnterpriseLicense": "Enable Enterprise License" + "sidebarEnableEnterpriseLicense": "Enable Enterprise License", + "cannotbeUndone": "This can not be undone.", + "toConfirm": "to confirm" } diff --git a/src/components/ConfirmDeleteDialog.tsx b/src/components/ConfirmDeleteDialog.tsx index cd053a14..db6415db 100644 --- a/src/components/ConfirmDeleteDialog.tsx +++ b/src/components/ConfirmDeleteDialog.tsx @@ -44,6 +44,7 @@ import { Description } from "@radix-ui/react-toast"; import { createApiClient } from "@app/lib/api"; import { useEnvContext } from "@app/hooks/useEnvContext"; import { useTranslations } from "next-intl"; +import CopyToClipboard from "./CopyToClipboard"; type InviteUserFormProps = { open: boolean; @@ -110,6 +111,17 @@ export default function InviteUserForm({
{dialog} +
+ {t("cannotbeUndone")} +
+ +
+
+ {t("type")} + + {t("toConfirm")} +
+
+

- {t("siteQuestionRemove", { - selectedSite: - selectedSite?.name || selectedSite?.id - })} + {t("siteQuestionRemove")}

-

{t("siteMessageRemove")}

- -

{t("siteMessageConfirm")}

} buttonText={t("siteConfirmDelete")}