From ae4a24f4aa1fe019aea7f8e7e606e32ec1d7dfb8 Mon Sep 17 00:00:00 2001 From: Pallavi Kumari Date: Sun, 19 Oct 2025 15:50:00 +0530 Subject: [PATCH] easier to delete resources --- messages/en-US.json | 3 +-- src/components/ConfirmDeleteDialog.tsx | 2 +- src/components/ResourcesTable.tsx | 30 +++++++++----------------- 3 files changed, 12 insertions(+), 23 deletions(-) diff --git a/messages/en-US.json b/messages/en-US.json index 6ba164f3..5dfe313b 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -153,8 +153,7 @@ "protected": "Protected", "notProtected": "Not Protected", "resourceMessageRemove": "Once removed, the resource will no longer be accessible. All targets associated with the resource will also be removed.", - "resourceMessageConfirm": "To confirm, please type the name of the resource below.", - "resourceQuestionRemove": "Are you sure you want to remove the resource {selectedResource} from the organization?", + "resourceQuestionRemove": "Are you sure you want to remove the resource from the organization?", "resourceHTTP": "HTTPS Resource", "resourceHTTPDescription": "Proxy requests to your app over HTTPS using a subdomain or base domain.", "resourceRaw": "Raw TCP/UDP Resource", diff --git a/src/components/ConfirmDeleteDialog.tsx b/src/components/ConfirmDeleteDialog.tsx index db6415db..499d0887 100644 --- a/src/components/ConfirmDeleteDialog.tsx +++ b/src/components/ConfirmDeleteDialog.tsx @@ -118,7 +118,7 @@ export default function InviteUserForm({
{t("type")} - + {t("toConfirm")}
diff --git a/src/components/ResourcesTable.tsx b/src/components/ResourcesTable.tsx index ad8b4fab..4f55b26d 100644 --- a/src/components/ResourcesTable.tsx +++ b/src/components/ResourcesTable.tsx @@ -695,17 +695,12 @@ export default function ResourcesTable({ }} dialog={
-

- {t("resourceQuestionRemove", { - selectedResource: - selectedResource?.name || - selectedResource?.id - })} +

+ {t("resourceQuestionRemove")} +

+

+ {t("resourceMessageRemove")}

- -

{t("resourceMessageRemove")}

- -

{t("resourceMessageConfirm")}

} buttonText={t("resourceDeleteConfirm")} @@ -724,17 +719,12 @@ export default function ResourcesTable({ }} dialog={
-

- {t("resourceQuestionRemove", { - selectedResource: - selectedInternalResource?.name || - selectedInternalResource?.id - })} +

+ {t("resourceQuestionRemove")} +

+

+ {t("resourceMessageRemove")}

- -

{t("resourceMessageRemove")}

- -

{t("resourceMessageConfirm")}

} buttonText={t("resourceDeleteConfirm")}