From 4e1e0537ee9b6ee3e0d51b09f76f071d5aa2c8ab Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Sat, 1 Mar 2025 23:55:59 -0700 Subject: [PATCH] Update MetricItemsSelectedPopup.tsx --- .../MetricListContainer/MetricItemsSelectedPopup.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/controllers/MetricListContainer/MetricItemsSelectedPopup.tsx b/web/src/controllers/MetricListContainer/MetricItemsSelectedPopup.tsx index e8204f854..563b23dea 100644 --- a/web/src/controllers/MetricListContainer/MetricItemsSelectedPopup.tsx +++ b/web/src/controllers/MetricListContainer/MetricItemsSelectedPopup.tsx @@ -126,6 +126,7 @@ const StatusButton: React.FC<{ const onVerifiedMetric = useBusterMetricsIndividualContextSelector( (state) => state.onVerifiedMetric ); + const isAdmin = useUserConfigContextSelector((state) => state.isAdmin); const onVerify = useMemoizedFn(async (d: { id: string; status: VerificationStatus }[]) => { // await onVerifiedMetric(d); @@ -137,6 +138,7 @@ const StatusButton: React.FC<{ status={VerificationStatus.notRequested} id={selectedRowKeys} onVerify={onVerify} + isAdmin={isAdmin} /> ); };