Add the resource name

This commit is contained in:
Owen
2026-06-04 22:10:38 -07:00
parent 84fef5f1d6
commit 2adb7b64cb
3 changed files with 27 additions and 6 deletions

View File

@@ -99,6 +99,7 @@ export default function RdpClient({
}) {
const t = useTranslations();
const STORAGE_KEY = "pangolin_rdp_credentials";
const resourceName = target?.name?.trim() || null;
const formSchema = z.object({
username: z.string().min(1, { message: t("usernameRequired") }),
@@ -358,9 +359,15 @@ export default function RdpClient({
<PoweredByPangolin />
<Card className="w-full">
<CardHeader>
<CardTitle>{t("rdpSignInTitle")}</CardTitle>
<CardTitle>
{resourceName
? `${t("rdpSignInTitle")} - ${resourceName}`
: t("rdpSignInTitle")}
</CardTitle>
<CardDescription>
{t("rdpSignInDescription")}
{resourceName
? `${t("rdpSignInDescription")} (${resourceName})`
: t("rdpSignInDescription")}
</CardDescription>
</CardHeader>
<CardContent>