From 84d24d9bf52b698913a6096938b2cba52fa2f38f Mon Sep 17 00:00:00 2001 From: Pallavi Kumari Date: Tue, 28 Oct 2025 21:54:56 +0530 Subject: [PATCH] niceId inside resource info --- src/components/ResourceInfoBox.tsx | 20 ++++++++++++++------ src/components/ResourcesTable.tsx | 16 ---------------- src/components/SitesTable.tsx | 24 ------------------------ 3 files changed, 14 insertions(+), 46 deletions(-) diff --git a/src/components/ResourceInfoBox.tsx b/src/components/ResourceInfoBox.tsx index 50bb9af2..e7cf2c82 100644 --- a/src/components/ResourceInfoBox.tsx +++ b/src/components/ResourceInfoBox.tsx @@ -17,7 +17,7 @@ import { useEnvContext } from "@app/hooks/useEnvContext"; type ResourceInfoBoxType = {}; -export default function ResourceInfoBox({}: ResourceInfoBoxType) { +export default function ResourceInfoBox({ }: ResourceInfoBoxType) { const { resource, authInfo } = useResourceContext(); const { env } = useEnvContext(); @@ -30,8 +30,16 @@ export default function ResourceInfoBox({}: ResourceInfoBoxType) { {/* 4 cols because of the certs */} + + + {t("niceId")} + + + {resource.niceId} + + {resource.http ? ( <> @@ -40,10 +48,10 @@ export default function ResourceInfoBox({}: ResourceInfoBoxType) { {authInfo.password || - authInfo.pincode || - authInfo.sso || - authInfo.whitelist || - authInfo.headerAuth ? ( + authInfo.pincode || + authInfo.sso || + authInfo.whitelist || + authInfo.headerAuth ? (
{t("protected")} diff --git a/src/components/ResourcesTable.tsx b/src/components/ResourcesTable.tsx index 0e613da8..252ac7d2 100644 --- a/src/components/ResourcesTable.tsx +++ b/src/components/ResourcesTable.tsx @@ -507,22 +507,6 @@ export default function ResourcesTable({ ); } }, - { - accessorKey: "nice", - header: ({ column }) => { - return ( - - ); - } - }, { accessorKey: "protocol", header: t("protocol"), diff --git a/src/components/SitesTable.tsx b/src/components/SitesTable.tsx index 0f1b0536..0d8b161c 100644 --- a/src/components/SitesTable.tsx +++ b/src/components/SitesTable.tsx @@ -164,30 +164,6 @@ export default function SitesTable({ sites, orgId }: SitesTableProps) { } } }, - { - accessorKey: "nice", - header: ({ column }) => { - return ( - - ); - }, - cell: ({ row }) => { - return ( -
- {row.original.nice} -
- ); - } - }, { accessorKey: "mbIn", header: ({ column }) => {