diff --git a/messages/en-US.json b/messages/en-US.json index 3b07d1ab9..c077f9a48 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -2393,6 +2393,7 @@ "createInternalResourceDialogClose": "Close", "createInternalResourceDialogCreateClientResource": "Create Private Resource", "createInternalResourceDialogCreateClientResourceDescription": "Create a new resource that will only be accessible to clients connected to the organization", + "privateResourceGeneralDescription": "Configure the name, identifier, and other general resource settings.", "privateResourceCreatePageSeeAll": "See All Private Resources", "privateResourceAllowIcmpPing": "Allow ICMP Ping", "privateResourceNetworkAccess": "Network Access", @@ -3269,7 +3270,7 @@ "editInternalResourceDialogAddUsers": "Add Users", "editInternalResourceDialogAddClients": "Add Clients", "editInternalResourceDialogDestinationLabel": "Destination", - "editInternalResourceDialogDestinationDescription": "Choose where this resource runs and how clients reach it", + "editInternalResourceDialogDestinationDescription": "Configure how clients reach this resource.", "internalResourceFormMultiSiteRoutingHelp": "Selecting multiple sites enables resilient routing and failover for high availability.", "internalResourceFormMultiSiteRoutingHelpLearnMore": "Learn more", "editInternalResourceDialogPortRestrictionsDescription": "Restrict access to specific TCP/UDP ports or allow/block all ports.", diff --git a/src/app/[orgId]/settings/resources/private/PrivateResourcePortRanges.tsx b/src/app/[orgId]/settings/resources/private/PrivateResourcePortRanges.tsx index 7af87dd9c..e4b6d727c 100644 --- a/src/app/[orgId]/settings/resources/private/PrivateResourcePortRanges.tsx +++ b/src/app/[orgId]/settings/resources/private/PrivateResourcePortRanges.tsx @@ -106,17 +106,23 @@ export function PrivateResourceNetworkAccessFields({ embedInParentGrid = false }: PrivateResourceNetworkAccessFieldsProps) { const t = useTranslations(); + const resolvedInitialTcp = initialTcp !== undefined ? initialTcp : "*"; + const resolvedInitialUdp = initialUdp !== undefined ? initialUdp : "*"; const [tcpPortMode, setTcpPortMode] = useState(() => - getPortModeFromString(initialTcp) + getPortModeFromString(resolvedInitialTcp) ); const [udpPortMode, setUdpPortMode] = useState(() => - getPortModeFromString(initialUdp) + getPortModeFromString(resolvedInitialUdp) ); const [tcpCustomPorts, setTcpCustomPorts] = useState(() => - initialTcp && initialTcp !== "*" ? initialTcp : "" + resolvedInitialTcp && resolvedInitialTcp !== "*" + ? resolvedInitialTcp + : "" ); const [udpCustomPorts, setUdpCustomPorts] = useState(() => - initialUdp && initialUdp !== "*" ? initialUdp : "" + resolvedInitialUdp && resolvedInitialUdp !== "*" + ? resolvedInitialUdp + : "" ); useEffect(() => { diff --git a/src/app/[orgId]/settings/resources/private/[niceId]/general/page.tsx b/src/app/[orgId]/settings/resources/private/[niceId]/general/page.tsx index 80cdc41ea..6e1a9fdeb 100644 --- a/src/app/[orgId]/settings/resources/private/[niceId]/general/page.tsx +++ b/src/app/[orgId]/settings/resources/private/[niceId]/general/page.tsx @@ -64,7 +64,7 @@ export default function PrivateResourceGeneralPage() { {t("resourceGeneral")} - {t("resourceGeneralDescription")} + {t("privateResourceGeneralDescription")}