mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
misc: made secret path input show correct folders based on env in integrations
This commit is contained in:
@@ -296,7 +296,7 @@ export const AwsSecretManagerConfigurePage = () => {
|
|||||||
errorText={error?.message}
|
errorText={error?.message}
|
||||||
isError={Boolean(error)}
|
isError={Boolean(error)}
|
||||||
>
|
>
|
||||||
<SecretPathInput {...field} />
|
<SecretPathInput {...field} environment={selectedSourceEnvironment} />
|
||||||
</FormControl>
|
</FormControl>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ export const AzureAppConfigurationConfigurePage = () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const selectedEnvironment = watch("sourceEnvironment");
|
||||||
const { mutateAsync } = useCreateIntegration();
|
const { mutateAsync } = useCreateIntegration();
|
||||||
|
|
||||||
const integrationAuthId = useSearch({
|
const integrationAuthId = useSearch({
|
||||||
@@ -248,7 +249,7 @@ export const AzureAppConfigurationConfigurePage = () => {
|
|||||||
name="secretPath"
|
name="secretPath"
|
||||||
render={({ field, fieldState: { error } }) => (
|
render={({ field, fieldState: { error } }) => (
|
||||||
<FormControl label="Secrets Path" errorText={error?.message} isError={Boolean(error)}>
|
<FormControl label="Secrets Path" errorText={error?.message} isError={Boolean(error)}>
|
||||||
<SecretPathInput {...field} />
|
<SecretPathInput {...field} environment={selectedEnvironment} />
|
||||||
</FormControl>
|
</FormControl>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ export const CircleCIConfigurePage = () => {
|
|||||||
|
|
||||||
const selectedScope = watch("scope");
|
const selectedScope = watch("scope");
|
||||||
const selectedOrg = watch("targetOrg");
|
const selectedOrg = watch("targetOrg");
|
||||||
|
const selectedEnvironment = watch("sourceEnvironment");
|
||||||
|
|
||||||
const { data: circleCIOrganizations, isPending: isCircleCIOrganizationsLoading } =
|
const { data: circleCIOrganizations, isPending: isCircleCIOrganizationsLoading } =
|
||||||
useGetIntegrationAuthCircleCIOrganizations(integrationAuthId);
|
useGetIntegrationAuthCircleCIOrganizations(integrationAuthId);
|
||||||
@@ -186,7 +187,7 @@ export const CircleCIConfigurePage = () => {
|
|||||||
name="secretPath"
|
name="secretPath"
|
||||||
render={({ field, fieldState: { error } }) => (
|
render={({ field, fieldState: { error } }) => (
|
||||||
<FormControl label="Secrets Path" errorText={error?.message} isError={Boolean(error)}>
|
<FormControl label="Secrets Path" errorText={error?.message} isError={Boolean(error)}>
|
||||||
<SecretPathInput {...field} />
|
<SecretPathInput {...field} environment={selectedEnvironment.slug}/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user