mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 14:34:09 +00:00
Merge pull request #4105 from Infisical/make-azure-devops-sync-not-require-proj-name
This commit is contained in:
+4
-2
@@ -115,8 +115,10 @@ export const getSecretSyncDestinationColValues = (secretSync: TSecretSync) => {
|
||||
secondaryText = "Vault ID";
|
||||
break;
|
||||
case SecretSync.AzureDevOps:
|
||||
primaryText = destinationConfig.devopsProjectName;
|
||||
secondaryText = destinationConfig.devopsProjectId;
|
||||
primaryText = destinationConfig.devopsProjectName || destinationConfig.devopsProjectId;
|
||||
secondaryText = destinationConfig.devopsProjectName
|
||||
? destinationConfig.devopsProjectId
|
||||
: "Project ID";
|
||||
break;
|
||||
case SecretSync.Heroku:
|
||||
primaryText = destinationConfig.appName;
|
||||
|
||||
+6
-2
@@ -7,8 +7,12 @@ type Props = {
|
||||
|
||||
export const AzureDevOpsSyncDestinationSection = ({ secretSync }: Props) => {
|
||||
const {
|
||||
destinationConfig: { devopsProjectName }
|
||||
destinationConfig: { devopsProjectName, devopsProjectId }
|
||||
} = secretSync;
|
||||
|
||||
return <GenericFieldLabel label="Project">{devopsProjectName}</GenericFieldLabel>;
|
||||
return (
|
||||
<GenericFieldLabel label={devopsProjectName ? "Project" : "Project ID"}>
|
||||
{devopsProjectName || devopsProjectId}
|
||||
</GenericFieldLabel>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user