Log GET secrets v2

This commit is contained in:
Tuan Dang
2023-08-08 22:42:13 +07:00
parent 58854e6b81
commit a9389643b8
4 changed files with 24 additions and 17 deletions
+2 -2
View File
@@ -483,7 +483,7 @@ export const AppLayout = ({ children }: LayoutProps) => {
</MenuItem>
</a>
</Link>
<Link href={`/project/${currentWorkspace?._id}/audit-logs`} passHref>
{/* <Link href={`/project/${currentWorkspace?._id}/audit-logs`} passHref>
<a>
<MenuItem
isSelected={
@@ -494,7 +494,7 @@ export const AppLayout = ({ children }: LayoutProps) => {
Audit Logs V2
</MenuItem>
</a>
</Link>
</Link> */}
<Link href={`/project/${currentWorkspace?._id}/logs`} passHref>
<a>
<MenuItem
@@ -45,15 +45,6 @@ export const SecretDetailDrawer = ({
const [canRevealSecOverride, setCanRevealSecOverride] = useToggle();
const { register, setValue, control, getValues } = useFormContext<FormData>();
const secKey = useWatch({
control,
name: `secrets.${index}.key`,
disabled: false,
exact: true
});
console.log("secKeyyy", secKey);
const overrideAction = useWatch({ control, name: `secrets.${index}.overrideAction` });
const isOverridden =
@@ -102,7 +93,8 @@ export const SecretDetailDrawer = ({
isDisabled={isReadOnly}
onClick={() => {
const secret = getValues(`secrets.${index}`);
onSecretDelete(index, secret._id, secret.idOverride);
onSecretDelete(index, secret.key, secret._id, secret.idOverride);
}}
>
Delete