mirror of https://github.com/buster-so/buster.git
Update MetricItemsSelectedPopup.tsx
This commit is contained in:
parent
f625ec4276
commit
4e1e0537ee
|
@ -126,6 +126,7 @@ const StatusButton: React.FC<{
|
||||||
const onVerifiedMetric = useBusterMetricsIndividualContextSelector(
|
const onVerifiedMetric = useBusterMetricsIndividualContextSelector(
|
||||||
(state) => state.onVerifiedMetric
|
(state) => state.onVerifiedMetric
|
||||||
);
|
);
|
||||||
|
const isAdmin = useUserConfigContextSelector((state) => state.isAdmin);
|
||||||
|
|
||||||
const onVerify = useMemoizedFn(async (d: { id: string; status: VerificationStatus }[]) => {
|
const onVerify = useMemoizedFn(async (d: { id: string; status: VerificationStatus }[]) => {
|
||||||
// await onVerifiedMetric(d);
|
// await onVerifiedMetric(d);
|
||||||
|
@ -137,6 +138,7 @@ const StatusButton: React.FC<{
|
||||||
status={VerificationStatus.notRequested}
|
status={VerificationStatus.notRequested}
|
||||||
id={selectedRowKeys}
|
id={selectedRowKeys}
|
||||||
onVerify={onVerify}
|
onVerify={onVerify}
|
||||||
|
isAdmin={isAdmin}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue