mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 08:29:55 +00:00
feat(secret-sync): minor fixes
This commit is contained in:
+7
-3
@@ -8,7 +8,7 @@ export const GitLabSyncReviewFields = () => {
|
||||
const { watch } = useFormContext<TSecretSyncForm & { destination: SecretSync.GitLab }>();
|
||||
const projectName = watch("destinationConfig.projectName");
|
||||
const targetEnvironment = watch("destinationConfig.targetEnvironment");
|
||||
const groupId = watch("destinationConfig.groupId");
|
||||
const groupName = watch("destinationConfig.groupName");
|
||||
const scope = watch("destinationConfig.scope");
|
||||
const shouldProtectSecrets = watch("destinationConfig.shouldProtectSecrets");
|
||||
const shouldMaskSecrets = watch("destinationConfig.shouldMaskSecrets");
|
||||
@@ -17,8 +17,12 @@ export const GitLabSyncReviewFields = () => {
|
||||
return (
|
||||
<>
|
||||
<GenericFieldLabel label="Scope">{scope}</GenericFieldLabel>
|
||||
<GenericFieldLabel label="Project Name">{projectName}</GenericFieldLabel>
|
||||
{groupId && <GenericFieldLabel label="Group ID">{groupId}</GenericFieldLabel>}
|
||||
{scope === GitlabSyncScope.Project && (
|
||||
<GenericFieldLabel label="Project Name">{projectName}</GenericFieldLabel>
|
||||
)}
|
||||
{scope === GitlabSyncScope.Group && (
|
||||
<GenericFieldLabel label="Group Name">{groupName}</GenericFieldLabel>
|
||||
)}
|
||||
{targetEnvironment && (
|
||||
<GenericFieldLabel label="Environment">{targetEnvironment}</GenericFieldLabel>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user