easier to delete resources

This commit is contained in:
Pallavi Kumari
2025-10-19 15:50:00 +05:30
parent 476cdcfe86
commit ae4a24f4aa
3 changed files with 12 additions and 23 deletions

View File

@@ -153,8 +153,7 @@
"protected": "Protected", "protected": "Protected",
"notProtected": "Not Protected", "notProtected": "Not Protected",
"resourceMessageRemove": "Once removed, the resource will no longer be accessible. All targets associated with the resource will also be removed.", "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 from the organization?",
"resourceQuestionRemove": "Are you sure you want to remove the resource {selectedResource} from the organization?",
"resourceHTTP": "HTTPS Resource", "resourceHTTP": "HTTPS Resource",
"resourceHTTPDescription": "Proxy requests to your app over HTTPS using a subdomain or base domain.", "resourceHTTPDescription": "Proxy requests to your app over HTTPS using a subdomain or base domain.",
"resourceRaw": "Raw TCP/UDP Resource", "resourceRaw": "Raw TCP/UDP Resource",

View File

@@ -118,7 +118,7 @@ export default function InviteUserForm({
<div> <div>
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
{t("type")} {t("type")}
<span className="px-2 py-1 rounded-md font-medium bg-secondary"><CopyToClipboard text={string} /></span> <span className="px-2 py-1 rounded-md bg-secondary"><CopyToClipboard text={string} /></span>
{t("toConfirm")} {t("toConfirm")}
</div> </div>
</div> </div>

View File

@@ -695,17 +695,12 @@ export default function ResourcesTable({
}} }}
dialog={ dialog={
<div> <div>
<p className="mb-2"> <p>
{t("resourceQuestionRemove", { {t("resourceQuestionRemove")}
selectedResource: </p>
selectedResource?.name || <p>
selectedResource?.id {t("resourceMessageRemove")}
})}
</p> </p>
<p className="mb-2">{t("resourceMessageRemove")}</p>
<p>{t("resourceMessageConfirm")}</p>
</div> </div>
} }
buttonText={t("resourceDeleteConfirm")} buttonText={t("resourceDeleteConfirm")}
@@ -724,17 +719,12 @@ export default function ResourcesTable({
}} }}
dialog={ dialog={
<div> <div>
<p className="mb-2"> <p>
{t("resourceQuestionRemove", { {t("resourceQuestionRemove")}
selectedResource: </p>
selectedInternalResource?.name || <p>
selectedInternalResource?.id {t("resourceMessageRemove")}
})}
</p> </p>
<p className="mb-2">{t("resourceMessageRemove")}</p>
<p>{t("resourceMessageConfirm")}</p>
</div> </div>
} }
buttonText={t("resourceDeleteConfirm")} buttonText={t("resourceDeleteConfirm")}